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