Fixed UI issue with 1-1 encrypted chat room at creation

This commit is contained in:
Sylvain Berfini 2020-09-03 15:19:16 +02:00
parent 3e61773f53
commit b9ee063018

View file

@ -131,6 +131,11 @@ class ChatRoomViewModel(val chatRoom: ChatRoom) : ViewModel(), ContactViewModelI
private val chatRoomListener: ChatRoomListenerStub = object : ChatRoomListenerStub() {
override fun onStateChanged(chatRoom: ChatRoom, state: ChatRoom.State) {
Log.i("[Chat Room] $chatRoom state changed: $state")
if (state == ChatRoom.State.Created) {
contactLookup()
updateSecurityIcon()
subject.value = chatRoom.subject
}
}
override fun onSubjectChanged(chatRoom: ChatRoom, eventLog: EventLog) {