ui: align call buttons with calls preference (#3740)

This commit is contained in:
spaced4ndy
2024-01-24 13:43:18 +04:00
committed by GitHub
parent 8738cf332f
commit f1ff27218c
2 changed files with 4 additions and 3 deletions
@@ -647,7 +647,7 @@ fun ChatInfoToolbar(
}
}
if (chat.chatInfo is ChatInfo.Direct && chat.chatInfo.contact.allowsFeature(ChatFeature.Calls)) {
if (chat.chatInfo is ChatInfo.Direct && chat.chatInfo.contact.mergedPreferences.calls.enabled.forUser) {
if (activeCall == null) {
barButtons.add {
if (appPlatform.isAndroid) {