Update security level icon in callback
This commit is contained in:
parent
b3a13690d7
commit
2a85dc43d5
1 changed files with 5 additions and 0 deletions
|
@ -646,6 +646,10 @@ public class GroupChatFragment extends Fragment implements ChatRoomListener, Con
|
||||||
setReadOnly();
|
setReadOnly();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
updateSecurityLevelIcon();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void updateSecurityLevelIcon() {
|
||||||
if (!mChatRoom.hasCapability(ChatRoomCapabilities.Encrypted.toInt())) {
|
if (!mChatRoom.hasCapability(ChatRoomCapabilities.Encrypted.toInt())) {
|
||||||
mChatRoomSecurityLevel.setVisibility(View.GONE);
|
mChatRoomSecurityLevel.setVisibility(View.GONE);
|
||||||
} else {
|
} else {
|
||||||
|
@ -1117,6 +1121,7 @@ public class GroupChatFragment extends Fragment implements ChatRoomListener, Con
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onSecurityEvent(ChatRoom cr, EventLog eventLog) {
|
public void onSecurityEvent(ChatRoom cr, EventLog eventLog) {
|
||||||
|
updateSecurityLevelIcon();
|
||||||
mEventsAdapter.addToHistory(eventLog);
|
mEventsAdapter.addToHistory(eventLog);
|
||||||
scrollToBottom();
|
scrollToBottom();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue