android: add realtime foreground local notifications with active chat gating
Some checks failed
CI / test (push) Failing after 2m12s
Some checks failed
CI / test (push) Failing after 2m12s
This commit is contained in:
@@ -137,6 +137,10 @@ class NetworkChatRepositoryTest {
|
||||
return chats.map { entities -> entities.firstOrNull { it.id == chatId }?.toLocalModel() }
|
||||
}
|
||||
|
||||
override suspend fun getChatDisplayTitle(chatId: Long): String? {
|
||||
return chats.value.firstOrNull { it.id == chatId }?.displayTitle
|
||||
}
|
||||
|
||||
override suspend fun upsertChats(chats: List<ChatEntity>) {
|
||||
val merged = this.chats.value.associateBy { it.id }.toMutableMap()
|
||||
chats.forEach { merged[it.id] = it }
|
||||
|
||||
Reference in New Issue
Block a user