import { Element } from 'ltx' ; import { Message } from '../../../../core/message' ; import { ChatPlugin } from '../../../../core/plugin' ; import { MessageWithBodyStanza , Stanza } from '../../../../core/stanza' ; import { MessageReceivedEvent } from './message.plugin' ; export abstract class AbstractXmppPlugin implements ChatPlugin { onBeforeOnline ( ) { return Promise . resolve ( ) ; } onOffline ( ) { } afterSendMessage ( message , messageStanza ) { return ; } beforeSendMessage ( messageStanza , message ) { return ; } handleStanza ( stanza ) { return false ; } afterReceiveMessage ( message , messageStanza , messageReceivedEvent ) { return ; } }