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
1 changed files with 5 additions and 3 deletions

View File

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