Skip to content

Commit

Permalink
Unsubscribe from old recipient observers in ConversationActivity.
Browse files Browse the repository at this point in the history
  • Loading branch information
greyson-signal authored and alan-signal committed Nov 9, 2019
1 parent 0ffa10e commit 0ccbb22
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1620,6 +1620,10 @@ protected void initializeActionBar() {
}

private void initializeResources() {
if (recipient != null) {
recipient.removeObservers(this);
}

recipient = Recipient.live(getIntent().getParcelableExtra(RECIPIENT_EXTRA));
threadId = getIntent().getLongExtra(THREAD_ID_EXTRA, -1);
archived = getIntent().getBooleanExtra(IS_ARCHIVED_EXTRA, false);
Expand Down

0 comments on commit 0ccbb22

Please sign in to comment.