mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 11:39:42 +01:00
hide call notification setting for federated rooms
because right now it's response is http 406 as calls are not implemented for federation Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
7e57ecaf79
commit
2cec1637e8
@ -199,7 +199,7 @@ class ConversationInfoActivity :
|
|||||||
if (databaseStorageModule == null) {
|
if (databaseStorageModule == null) {
|
||||||
databaseStorageModule = DatabaseStorageModule(conversationUser, conversationToken)
|
databaseStorageModule = DatabaseStorageModule(conversationUser, conversationToken)
|
||||||
}
|
}
|
||||||
setUpNotificationSettings(databaseStorageModule!!)
|
|
||||||
binding.deleteConversationAction.setOnClickListener { showDeleteConversationDialog() }
|
binding.deleteConversationAction.setOnClickListener { showDeleteConversationDialog() }
|
||||||
binding.leaveConversationAction.setOnClickListener { leaveConversation() }
|
binding.leaveConversationAction.setOnClickListener { leaveConversation() }
|
||||||
binding.clearConversationHistory.setOnClickListener { showClearHistoryDialog() }
|
binding.clearConversationHistory.setOnClickListener { showClearHistoryDialog() }
|
||||||
@ -690,6 +690,8 @@ class ConversationInfoActivity :
|
|||||||
private fun handleConversation() {
|
private fun handleConversation() {
|
||||||
val conversationCopy = conversation!!
|
val conversationCopy = conversation!!
|
||||||
|
|
||||||
|
setUpNotificationSettings(databaseStorageModule!!)
|
||||||
|
|
||||||
if (CapabilitiesUtil.hasSpreedFeatureCapability(spreedCapabilities, SpreedFeatures.RICH_OBJECT_LIST_MEDIA) &&
|
if (CapabilitiesUtil.hasSpreedFeatureCapability(spreedCapabilities, SpreedFeatures.RICH_OBJECT_LIST_MEDIA) &&
|
||||||
conversationCopy.remoteServer.isNullOrEmpty()
|
conversationCopy.remoteServer.isNullOrEmpty()
|
||||||
) {
|
) {
|
||||||
@ -1347,8 +1349,13 @@ class ConversationInfoActivity :
|
|||||||
binding.notificationSettingsView.importantConversationSwitch.isChecked = module
|
binding.notificationSettingsView.importantConversationSwitch.isChecked = module
|
||||||
.getBoolean("important_conversation_switch", false)
|
.getBoolean("important_conversation_switch", false)
|
||||||
|
|
||||||
binding.notificationSettingsView.callNotificationsSwitch.isChecked = module
|
if (conversation!!.remoteServer.isNullOrEmpty()) {
|
||||||
.getBoolean("call_notifications_switch", true)
|
binding.notificationSettingsView.notificationSettingsCallNotifications.visibility = VISIBLE
|
||||||
|
binding.notificationSettingsView.callNotificationsSwitch.isChecked = module
|
||||||
|
.getBoolean("call_notifications_switch", true)
|
||||||
|
} else {
|
||||||
|
binding.notificationSettingsView.notificationSettingsCallNotifications.visibility = GONE
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
Loading…
Reference in New Issue
Block a user