From 463bcfa3009d367c75aa5425bf8679db4f19c374 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=BCller?= Date: Wed, 31 Jul 2024 08:25:19 +0200 Subject: [PATCH] Check typingPrivacy in local capabilities MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcel Müller --- NextcloudTalk/ChatViewController.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NextcloudTalk/ChatViewController.swift b/NextcloudTalk/ChatViewController.swift index 2a6cbfb7..d49bd04e 100644 --- a/NextcloudTalk/ChatViewController.swift +++ b/NextcloudTalk/ChatViewController.swift @@ -1179,7 +1179,9 @@ import UIKit let displayName = notification.userInfo?["displayName"] as? String ?? NSLocalizedString("Guest", comment: "") // Don't show a typing indicator for ourselves or if typing indicator setting is disabled - guard let serverCapabilities = NCDatabaseManager.sharedInstance().roomTalkCapabilities(for: self.room) + // Workaround: TypingPrivacy should be checked locally, not from the remote server, use serverCapabilities for now + // TODO: Remove workaround for federated typing indicators. + guard let serverCapabilities = NCDatabaseManager.sharedInstance().serverCapabilities(forAccountId: self.room.accountId) else { return } let activeAccount = NCDatabaseManager.sharedInstance().activeAccount()