always show conversations with pending subscription requests

This commit is contained in:
Daniel Gultsch 2015-12-09 12:18:06 +01:00
parent 5e151c7311
commit 5bd70cfee8

View file

@ -200,10 +200,12 @@ public class PresenceParser extends AbstractParser implements
mPresenceGenerator.sendPresenceUpdatesTo(contact)); mPresenceGenerator.sendPresenceUpdatesTo(contact));
} else { } else {
contact.setOption(Contact.Options.PENDING_SUBSCRIPTION_REQUEST); contact.setOption(Contact.Options.PENDING_SUBSCRIPTION_REQUEST);
final Conversation conversation = mXmppConnectionService.findOrCreateConversation(
account, contact.getJid().toBareJid(), false);
final String statusMessage = packet.findChildContent("status"); final String statusMessage = packet.findChildContent("status");
if (statusMessage != null && !statusMessage.isEmpty()) { if (statusMessage != null
final Conversation conversation = mXmppConnectionService.findOrCreateConversation( && !statusMessage.isEmpty()
account, contact.getJid().toBareJid(), false); && conversation.countMessages() == 0) {
conversation.add(new Message( conversation.add(new Message(
conversation, conversation,
statusMessage, statusMessage,