mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-30 20:52:21 -05:00
Merge pull request #209 from mrdomino/development
Send from our full jid (fixes #60)
This commit is contained in:
commit
7a164f7639
@ -817,6 +817,7 @@ public class XmppConnectionService extends Service {
|
||||
MessagePacket packet = new MessagePacket();
|
||||
if (message.getConversation().getMode() == Conversation.MODE_SINGLE) {
|
||||
packet.setType(MessagePacket.TYPE_CHAT);
|
||||
packet.setFrom(account.getFullJid());
|
||||
if (otrSession != null) {
|
||||
try {
|
||||
packet.setBody(otrSession.transformSending(message
|
||||
@ -831,11 +832,9 @@ public class XmppConnectionService extends Service {
|
||||
packet.addChild("no-copy", "urn:xmpp:hints");
|
||||
packet.setTo(otrSession.getSessionID().getAccountID() + "/"
|
||||
+ otrSession.getSessionID().getUserID());
|
||||
packet.setFrom(account.getFullJid());
|
||||
} else {
|
||||
packet.setBody(message.getBody());
|
||||
packet.setTo(message.getCounterpart());
|
||||
packet.setFrom(account.getJid());
|
||||
}
|
||||
packet.addChild("markable", "urn:xmpp:chat-markers:0");
|
||||
} else if (message.getConversation().getMode() == Conversation.MODE_MULTI) {
|
||||
|
Loading…
Reference in New Issue
Block a user