We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f74486f commit a11ca17Copy full SHA for a11ca17
libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/RustMatrixClient.kt
@@ -221,6 +221,9 @@ class RustMatrixClient(
221
override val userProfile: StateFlow<MatrixUser> = _userProfile
222
223
override val ignoredUsersFlow = mxCallbackFlow<ImmutableList<UserId>> {
224
+ // Fetch the initial value manually, the SDK won't return it automatically
225
+ channel.trySend(innerClient.ignoredUsers().map(::UserId).toPersistentList())
226
+
227
innerClient.subscribeToIgnoredUsers(object : IgnoredUsersListener {
228
override fun call(ignoredUserIds: List<String>) {
229
channel.trySend(ignoredUserIds.map(::UserId).toPersistentList())
0 commit comments