mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-07 21:37:02 +09:00
DROID-3622 Widgets | Fix | Emit "Chat" widget placeholder immediately (#2464)
This commit is contained in:
parent
c3cc8667c4
commit
e130fb5602
1 changed files with 9 additions and 0 deletions
|
@ -10,6 +10,7 @@ import kotlinx.coroutines.flow.distinctUntilChanged
|
|||
import kotlinx.coroutines.flow.emitAll
|
||||
import kotlinx.coroutines.flow.flow
|
||||
import kotlinx.coroutines.flow.map
|
||||
import kotlinx.coroutines.flow.onStart
|
||||
|
||||
class SpaceChatWidgetContainer @Inject constructor(
|
||||
private val widget: Widget,
|
||||
|
@ -32,6 +33,14 @@ class SpaceChatWidgetContainer @Inject constructor(
|
|||
unreadMentionCount = unreadMentionCount
|
||||
)
|
||||
}
|
||||
.onStart {
|
||||
emit(
|
||||
WidgetView.SpaceChat(
|
||||
id = widget.id,
|
||||
source = widget.source
|
||||
)
|
||||
)
|
||||
}
|
||||
)
|
||||
}.catch {
|
||||
emit(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue