fix bug in ConversationFragment

This commit is contained in:
Christian Schneppe 2022-09-26 17:51:38 +02:00
parent f45fe2cb59
commit e5ff0f7a2d

View file

@ -1657,17 +1657,15 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
if (conversation.getMode() == Conversation.MODE_SINGLE) {
activity.xmppConnectionService.archiveConversation(conversation);
} else {
activity.runOnUiThread(() -> {
final AlertDialog.Builder builder = new AlertDialog.Builder(activity);
builder.setTitle(activity.getString(R.string.action_end_conversation_muc));
builder.setMessage(activity.getString(R.string.leave_conference_warning));
builder.setNegativeButton(activity.getString(R.string.cancel), null);
builder.setPositiveButton(activity.getString(R.string.action_end_conversation_muc),
(dialog, which) -> {
activity.xmppConnectionService.archiveConversation(conversation);
});
builder.create().show();
});
final AlertDialog.Builder builder = new AlertDialog.Builder(activity);
builder.setTitle(activity.getString(R.string.action_end_conversation_muc));
builder.setMessage(activity.getString(R.string.leave_conference_warning));
builder.setNegativeButton(activity.getString(R.string.cancel), null);
builder.setPositiveButton(activity.getString(R.string.action_end_conversation_muc),
(dialog, which) -> {
activity.xmppConnectionService.archiveConversation(conversation);
});
builder.create().show();
}
break;
case R.id.action_invite: