Skip to content

Commit

Permalink
Merge pull request #1735 from nextcloud/federated-typing-indicator
Browse files Browse the repository at this point in the history
Check typingPrivacy in local capabilities
  • Loading branch information
SystemKeeper committed Jul 31, 2024
2 parents ff11aec + 463bcfa commit b6aadaf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion NextcloudTalk/ChatViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit b6aadaf

Please sign in to comment.