Skip to content

Commit

Permalink
Merge pull request #1901 from nextcloud/no-summary-in-federated-room
Browse files Browse the repository at this point in the history
No AI summary in federated rooms
  • Loading branch information
Ivansss authored Dec 2, 2024
2 parents f5ed7a8 + e12077d commit 96ac7ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NextcloudTalk/ChatViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import SwiftyAttributes
message.messageId = MessageSeparatorTableViewCell.unreadMessagesSeparatorId

// We decide at this point if the unread marker should be with/without summary button, so it doesn't get changed when the room is updated
if NCDatabaseManager.sharedInstance().serverHasTalkCapability(kCapabilityChatSummary, forAccountId: self.room.accountId),
if !self.room.isFederated, NCDatabaseManager.sharedInstance().serverHasTalkCapability(kCapabilityChatSummary, forAccountId: self.room.accountId),
let serverCapabilities = NCDatabaseManager.sharedInstance().serverCapabilities(forAccountId: self.room.accountId),
serverCapabilities.summaryThreshold <= self.room.unreadMessages {

Expand Down

0 comments on commit 96ac7ca

Please sign in to comment.