diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-04-13 23:07:06 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-04-13 23:07:06 +0200 |
commit | bcbc0006a171c06e896e6430d239e7a57357b016 (patch) | |
tree | 0828380befbee36bea71c621a3a19e8ccf74fbbf /src/main | |
parent | 5be28d3a4aff0123c658674886bf998513bc3093 (diff) |
remove duplicate call to onConversationArchived()
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/ConversationFragment.java | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java index 29b034308..7dc0697db 100644 --- a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java +++ b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java @@ -182,7 +182,6 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke @Override public void onClick(View v) { activity.xmppConnectionService.archiveConversation(conversation); - activity.onConversationArchived(conversation); } }; private OnClickListener joinMuc = new OnClickListener() { @@ -1403,7 +1402,6 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke case R.id.action_archive_chat: if (conversation.getMode() == Conversation.MODE_SINGLE) { activity.xmppConnectionService.archiveConversation(conversation); - activity.onConversationArchived(conversation); } else { activity.runOnUiThread(() -> { AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); @@ -1413,7 +1411,6 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke builder.setPositiveButton(getString(R.string.action_end_conversation_muc), (dialog, which) -> { activity.xmppConnectionService.archiveConversation(conversation); - activity.onConversationArchived(conversation); }); builder.create().show(); }); @@ -1661,7 +1658,6 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke this.activity.xmppConnectionService.clearConversationHistory(conversation); if (endConversationCheckBox.isChecked()) { this.activity.xmppConnectionService.archiveConversation(conversation); - this.activity.onConversationArchived(conversation); } else { activity.onConversationsListItemUpdated(); refresh(); |