Update the SDK with a fix for read receipts. (#5991)

This commit is contained in:
Doug
2026-08-07 13:41:48 +01:00
committed by GitHub
parent 1a72a4e17b
commit aeffd942ec
7 changed files with 53 additions and 30 deletions
@@ -124,9 +124,12 @@ class RoomScreenViewModel: RoomScreenViewModelType, RoomScreenViewModelProtocol
}
func stop() {
// When navigating away from the room, we need to mark the room as fully read.
// This does not affect the read receipts only the notification count.
Task { await roomProxy.markAsRead(receiptType: .fullyRead) }
Task {
// When navigating away from the room, we need to mark the room as both read
// and fully read for Synapse to clear this room from the app's badge count.
_ = await roomProxy.markAsRead(receiptType: appSettings.sharePresence ? .read : .readPrivate)
_ = await roomProxy.markAsRead(receiptType: .fullyRead)
}
// Work around QLPreviewController dismissal issues, see the InteractiveQuickLookModifier.
state.bindings.mediaPreviewViewModel = nil
}
@@ -362,7 +362,7 @@ class ClientProxy: ClientProxyProtocol {
var isLiveKitRTCSupported: Bool {
get async {
do {
return try await client.isLivekitRtcSupported()
return try await client.isLivekitRtcSupported(fallbackToWellKnown: true)
} catch {
MXLog.error("Failed checking LiveKit RTC support with error: \(error)")
return false