mirror of
https://github.com/moparisthebest/Conversations
synced 2024-12-25 08:58:55 -05:00
don't use sending state on muc pms without smacks
This commit is contained in:
parent
cd1c05a7c3
commit
9e54fd5c92
@ -1135,7 +1135,8 @@ public class XmppConnectionService extends Service {
|
||||
|
||||
}
|
||||
if (packet != null) {
|
||||
if (account.getXmppConnection().getFeatures().sm() || conversation.getMode() == Conversation.MODE_MULTI) {
|
||||
if (account.getXmppConnection().getFeatures().sm()
|
||||
|| (conversation.getMode() == Conversation.MODE_MULTI && message.getCounterpart().isBareJid())) {
|
||||
message.setStatus(Message.STATUS_UNSEND);
|
||||
} else {
|
||||
message.setStatus(Message.STATUS_SEND);
|
||||
@ -1177,7 +1178,8 @@ public class XmppConnectionService extends Service {
|
||||
|
||||
if (resend) {
|
||||
if (packet != null && addToConversation) {
|
||||
if (account.getXmppConnection().getFeatures().sm() || conversation.getMode() == Conversation.MODE_MULTI) {
|
||||
if (account.getXmppConnection().getFeatures().sm()
|
||||
|| (conversation.getMode() == Conversation.MODE_MULTI && message.getCounterpart().isBareJid())) {
|
||||
markMessage(message, Message.STATUS_UNSEND);
|
||||
} else {
|
||||
markMessage(message, Message.STATUS_SEND);
|
||||
|
Loading…
Reference in New Issue
Block a user