use of org.awesomeapp.messenger.model.ChatSessionManager in project Zom-Android by zom.
the class LoopbackConnection method getChatSessionManager.
@Override
public ChatSessionManager getChatSessionManager() {
return new ChatSessionManager() {
@Override
public void sendMessageAsync(ChatSession session, Message message) {
// Echo
Message rec = new Message(message.getBody());
rec.setFrom(message.getTo());
rec.setDateTime(new Date());
session.onReceiveMessage(rec, true);
}
@Override
public boolean resourceSupportsOmemo(Jid jid) {
return false;
}
};
}
Aggregations