Simplified code as the work is now done in the SDK (4.5.0-alpha-138 and newer)
This commit is contained in:
parent
b4a5d9bf44
commit
08cb252116
1 changed files with 2 additions and 3 deletions
|
@ -123,8 +123,7 @@ class GroupInfoViewModel(val chatRoom: ChatRoom?) : ErrorReportingViewModel() {
|
||||||
index += 1
|
index += 1
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use proxy config contact instead of identity because we need GRUU
|
val chatRoom: ChatRoom? = coreContext.core.createChatRoom(params, coreContext.core.defaultProxyConfig?.identityAddress, addresses)
|
||||||
val chatRoom: ChatRoom? = coreContext.core.createChatRoom(params, coreContext.core.defaultProxyConfig?.contact, addresses)
|
|
||||||
chatRoom?.addListener(listener)
|
chatRoom?.addListener(listener)
|
||||||
if (chatRoom == null) {
|
if (chatRoom == null) {
|
||||||
Log.e("[Chat Room Group Info] Couldn't create chat room!")
|
Log.e("[Chat Room Group Info] Couldn't create chat room!")
|
||||||
|
@ -139,7 +138,7 @@ class GroupInfoViewModel(val chatRoom: ChatRoom?) : ErrorReportingViewModel() {
|
||||||
val newSubject = subject.value.orEmpty()
|
val newSubject = subject.value.orEmpty()
|
||||||
if (newSubject.isNotEmpty() && newSubject != chatRoom.subject) {
|
if (newSubject.isNotEmpty() && newSubject != chatRoom.subject) {
|
||||||
Log.i("[Chat Room Group Info] Subject changed to $newSubject")
|
Log.i("[Chat Room Group Info] Subject changed to $newSubject")
|
||||||
chatRoom.setSubject(newSubject)
|
chatRoom.subject = newSubject
|
||||||
}
|
}
|
||||||
|
|
||||||
// Removed participants
|
// Removed participants
|
||||||
|
|
Loading…
Reference in a new issue