mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
No need to launch a coroutine to send the first value.
This commit is contained in:
+2
-4
@@ -116,10 +116,8 @@ class RustMatrixRoom(
|
|||||||
}
|
}
|
||||||
|
|
||||||
override val roomTypingMembersFlow: Flow<List<UserId>> = mxCallbackFlow {
|
override val roomTypingMembersFlow: Flow<List<UserId>> = mxCallbackFlow {
|
||||||
launch {
|
val initial = emptyList<UserId>()
|
||||||
val initial = emptyList<UserId>()
|
channel.trySend(initial)
|
||||||
channel.trySend(initial)
|
|
||||||
}
|
|
||||||
innerRoom.subscribeToTypingNotifications(object : TypingNotificationsListener {
|
innerRoom.subscribeToTypingNotifications(object : TypingNotificationsListener {
|
||||||
override fun call(typingUserIds: List<String>) {
|
override fun call(typingUserIds: List<String>) {
|
||||||
channel.trySend(
|
channel.trySend(
|
||||||
|
|||||||
Reference in New Issue
Block a user