From 4a3faf90864d330f0d244da25a597c2bf97031bd Mon Sep 17 00:00:00 2001 From: Jake McGinty Date: Wed, 14 Oct 2015 15:09:02 -0700 Subject: [PATCH] stop listening on old recipient changes Closes #4251 // FREEBIE --- src/org/thoughtcrime/securesms/ConversationActivity.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/org/thoughtcrime/securesms/ConversationActivity.java b/src/org/thoughtcrime/securesms/ConversationActivity.java index a134836939..4427988c67 100644 --- a/src/org/thoughtcrime/securesms/ConversationActivity.java +++ b/src/org/thoughtcrime/securesms/ConversationActivity.java @@ -927,6 +927,8 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity } private void initializeResources() { + if (recipients != null) recipients.removeListener(this); + recipients = RecipientFactory.getRecipientsForIds(this, getIntent().getLongArrayExtra(RECIPIENTS_EXTRA), true); threadId = getIntent().getLongExtra(THREAD_ID_EXTRA, -1); distributionType = getIntent().getIntExtra(DISTRIBUTION_TYPE_EXTRA, ThreadDatabase.DistributionTypes.DEFAULT);