mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Update the SDK with a fix for read receipts. (#5991)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user