forked from mirror/monocles_chat
fix crash while ending MUC from context menu
(cherry picked from commit e2650b52fa
)
This commit is contained in:
parent
747681bb27
commit
80be919f1a
1 changed files with 5 additions and 5 deletions
|
@ -1679,11 +1679,11 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
|
|||
activity.xmppConnectionService.archiveConversation(conversation);
|
||||
} else {
|
||||
activity.runOnUiThread(() -> {
|
||||
final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
|
||||
builder.setTitle(getString(R.string.action_end_conversation_muc));
|
||||
builder.setMessage(getString(R.string.leave_conference_warning));
|
||||
builder.setNegativeButton(getString(R.string.cancel), null);
|
||||
builder.setPositiveButton(getString(R.string.action_end_conversation_muc),
|
||||
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);
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue