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));
|
mPresenceGenerator.sendPresenceUpdatesTo(contact));
|
||||||
} else {
|
} else {
|
||||||
contact.setOption(Contact.Options.PENDING_SUBSCRIPTION_REQUEST);
|
contact.setOption(Contact.Options.PENDING_SUBSCRIPTION_REQUEST);
|
||||||
final String statusMessage = packet.findChildContent("status");
|
|
||||||
if (statusMessage != null && !statusMessage.isEmpty()) {
|
|
||||||
final Conversation conversation = mXmppConnectionService.findOrCreateConversation(
|
final Conversation conversation = mXmppConnectionService.findOrCreateConversation(
|
||||||
account, contact.getJid().toBareJid(), false);
|
account, contact.getJid().toBareJid(), false);
|
||||||
|
final String statusMessage = packet.findChildContent("status");
|
||||||
|
if (statusMessage != null
|
||||||
|
&& !statusMessage.isEmpty()
|
||||||
|
&& conversation.countMessages() == 0) {
|
||||||
conversation.add(new Message(
|
conversation.add(new Message(
|
||||||
conversation,
|
conversation,
|
||||||
statusMessage,
|
statusMessage,
|
||||||
|
|
Loading…
Reference in a new issue