Private
Public Access
1
0

MessageListScreen: Annotate sender in group chats

This commit is contained in:
2024-03-19 00:48:15 -07:00
parent 3d3abc1813
commit 09294e7da9
4 changed files with 69 additions and 27 deletions

View File

@@ -42,6 +42,9 @@ data class Conversation(
}
}
val isGroupChat: Boolean
get() = participants.count() > 1
fun formattedDisplayName(): String {
return displayName ?: participants.joinToString(", ")
}

View File

@@ -42,7 +42,7 @@ class UpdateMonitor(private val client: APIClient) : WebSocketListener() {
fun beginMonitoringUpdates() {
Log.d(UPMON_LOG, "Opening websocket connection")
this.webSocket = client.getWebSocketClient(
serverPath = "/updates",
serverPath = "updates",
queryParams = mapOf("seq" to messageSeq.toString()),
listener = this
)