mirror of
https://github.com/oxen-io/session-android.git
synced 2025-04-17 03:21:29 +00:00
Make recipient lookup asynchronous, add listener when appropriate.
Fixes #4032 // FREEBIE
This commit is contained in:
parent
d4718c373a
commit
b5216ed7af
@ -300,7 +300,8 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
|||||||
addAttachmentContactInfo(data.getData());
|
addAttachmentContactInfo(data.getData());
|
||||||
break;
|
break;
|
||||||
case GROUP_EDIT:
|
case GROUP_EDIT:
|
||||||
this.recipients = RecipientFactory.getRecipientsForIds(this, data.getLongArrayExtra(GroupCreateActivity.GROUP_RECIPIENT_EXTRA), true);
|
recipients = RecipientFactory.getRecipientsForIds(this, data.getLongArrayExtra(GroupCreateActivity.GROUP_RECIPIENT_EXTRA), true);
|
||||||
|
recipients.addListener(this);
|
||||||
titleView.setTitle(recipients);
|
titleView.setTitle(recipients);
|
||||||
setBlockedUserState(recipients);
|
setBlockedUserState(recipients);
|
||||||
supportInvalidateOptionsMenu();
|
supportInvalidateOptionsMenu();
|
||||||
@ -883,7 +884,8 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
|||||||
if (recipients != null) {
|
if (recipients != null) {
|
||||||
long[] ids = recipients.getIds();
|
long[] ids = recipients.getIds();
|
||||||
Log.w("ConversationActivity", "Looking up new recipients...");
|
Log.w("ConversationActivity", "Looking up new recipients...");
|
||||||
recipients = RecipientFactory.getRecipientsForIds(context, ids, false);
|
recipients = RecipientFactory.getRecipientsForIds(context, ids, true);
|
||||||
|
recipients.addListener(ConversationActivity.this);
|
||||||
titleView.setTitle(recipients);
|
titleView.setTitle(recipients);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user