Fixed UI issue with 1-1 encrypted chat room at creation
This commit is contained in:
parent
3e61773f53
commit
b9ee063018
1 changed files with 5 additions and 0 deletions
|
@ -131,6 +131,11 @@ class ChatRoomViewModel(val chatRoom: ChatRoom) : ViewModel(), ContactViewModelI
|
||||||
private val chatRoomListener: ChatRoomListenerStub = object : ChatRoomListenerStub() {
|
private val chatRoomListener: ChatRoomListenerStub = object : ChatRoomListenerStub() {
|
||||||
override fun onStateChanged(chatRoom: ChatRoom, state: ChatRoom.State) {
|
override fun onStateChanged(chatRoom: ChatRoom, state: ChatRoom.State) {
|
||||||
Log.i("[Chat Room] $chatRoom state changed: $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) {
|
override fun onSubjectChanged(chatRoom: ChatRoom, eventLog: EventLog) {
|
||||||
|
|
Loading…
Reference in a new issue