always show conversations with pending subscription requests
This commit is contained in:
parent
5e151c7311
commit
5bd70cfee8
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue