android: add realtime foreground local notifications with active chat gating
Some checks failed
CI / test (push) Failing after 2m12s

This commit is contained in:
Codex
2026-03-09 14:48:17 +03:00
parent e8574252ca
commit 98492f869d
8 changed files with 73 additions and 1 deletions

View File

@@ -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 }