Commit d1949f1c authored by Grigory Fedorov's avatar Grigory Fedorov

ChatViewer: close chat option return to menu.

parent 92c39b27
...@@ -192,7 +192,7 @@ public class ChatViewer extends ManagedActivity implements OnChatChangedListener ...@@ -192,7 +192,7 @@ public class ChatViewer extends ManagedActivity implements OnChatChangedListener
if (chatState == RoomState.unavailable) { if (chatState == RoomState.unavailable) {
menu.findItem(R.id.action_join_conference).setVisible(true); menu.findItem(R.id.action_join_conference).setVisible(true);
menu.findItem(R.id.action_close_chat).setVisible(true);
} else { } else {
menu.findItem(R.id.action_invite_to_chat).setVisible(true); menu.findItem(R.id.action_invite_to_chat).setVisible(true);
...@@ -206,6 +206,7 @@ public class ChatViewer extends ManagedActivity implements OnChatChangedListener ...@@ -206,6 +206,7 @@ public class ChatViewer extends ManagedActivity implements OnChatChangedListener
if (abstractChat instanceof RegularChat) { if (abstractChat instanceof RegularChat) {
menu.findItem(R.id.action_edit_contact).setVisible(true); menu.findItem(R.id.action_edit_contact).setVisible(true);
menu.findItem(R.id.action_close_chat).setVisible(true);
SecurityLevel securityLevel = OTRManager.getInstance().getSecurityLevel(account, user); SecurityLevel securityLevel = OTRManager.getInstance().getSecurityLevel(account, user);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment