Adopt new canOwnUser* power level methods instead of the throwing ones.

This commit is contained in:
Stefan Ceriu
2025-06-25 11:34:51 +03:00
committed by Stefan Ceriu
parent 374fb722c6
commit c7ff6c019d
11 changed files with 50 additions and 29 deletions
@@ -47,7 +47,7 @@ final class CompletionSuggestionService: CompletionSuggestionServiceProtocol {
self?.suggestionTriggerSubject.value != nil ? .milliseconds(500) : .milliseconds(0)
}
canMentionAllUsers = (try? roomProxy.infoPublisher.value.powerLevels.canUserTriggerRoomNotification(userID: roomProxy.ownUserID).get()) == true
canMentionAllUsers = roomProxy.infoPublisher.value.powerLevels.canOwnUserTriggerRoomNotification()
}
func processTextMessage(_ textMessage: String, selectedRange: NSRange) {