remove duplicate call to onConversationArchived()

This commit is contained in:
Daniel Gultsch 2018-03-29 16:23:36 +02:00
parent f2b0a10c22
commit 3dc749b22b
2 changed files with 1 additions and 6 deletions

View File

@ -159,7 +159,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() {
@ -1130,7 +1129,6 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
break;
case R.id.action_archive:
activity.xmppConnectionService.archiveConversation(conversation);
activity.onConversationArchived(conversation);
break;
case R.id.action_contact_details:
activity.switchToContactDetails(conversation.getContact());

View File

@ -227,9 +227,6 @@ public class ConversationsOverviewFragment extends XmppFragment implements Enhan
if (position == 0 && this.conversationsAdapter.getCount() == 0) {
final Conversation c = swipedConversation.pop();
activity.xmppConnectionService.archiveConversation(c);
if (activity instanceof OnConversationArchived) {
((OnConversationArchived) activity).onConversationArchived(c);
}
return null;
}
final boolean formerlySelected = ConversationFragment.getConversation(getActivity()) == swipedConversation.peek();