Commit 7332dc06 authored by Lucio Maciel's avatar Lucio Maciel

Add comment (and force rebuild)

parent d5076c22
...@@ -84,11 +84,7 @@ class ChatRoomsPresenter @Inject constructor( ...@@ -84,11 +84,7 @@ class ChatRoomsPresenter @Inject constructor(
view.showMessage(R.string.msg_generic_error) view.showMessage(R.string.msg_generic_error)
} else { } else {
val id = if (isDirectMessage && !open) { val id = if (isDirectMessage && !open) {
val fromTo = mutableListOf(myself.id, id).apply { // If from local database, we already have the roomId, no need to concatenate
sort()
}
val roomId = fromTo.joinToString("")
if (local) { if (local) {
retryIO { retryIO {
client.show(id, roomTypeOf(RoomType.DIRECT_MESSAGE)) client.show(id, roomTypeOf(RoomType.DIRECT_MESSAGE))
...@@ -100,7 +96,10 @@ class ChatRoomsPresenter @Inject constructor( ...@@ -100,7 +96,10 @@ class ChatRoomsPresenter @Inject constructor(
createDirectMessage(name) createDirectMessage(name)
} }
} }
roomId val fromTo = mutableListOf(myself.id, id).apply {
sort()
}
fromTo.joinToString("")
} }
} else { } else {
id id
......
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