mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-09 05:50:15 +01:00
api call
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
8f46531699
commit
61af44f3f4
@ -1049,11 +1049,6 @@ class ConversationInfoActivity :
|
||||
viewModel.getRoom(conversationUser, conversationToken)
|
||||
}
|
||||
|
||||
binding.notificationSettingsView.notificationSettingsSensitiveConversation.setOnClickListener {
|
||||
val isChecked = binding.notificationSettingsView.sensitiveConversationSwitch.isChecked
|
||||
binding.notificationSettingsView.callNotificationsSwitch.isChecked = !isChecked
|
||||
}
|
||||
|
||||
if (conversation!!.hasArchived) {
|
||||
binding.archiveConversationIcon
|
||||
.setImageDrawable(ResourcesCompat.getDrawable(resources, R.drawable.ic_eye, null))
|
||||
@ -1066,12 +1061,24 @@ class ConversationInfoActivity :
|
||||
binding.archiveConversationTextHint.text = resources.getString(R.string.archive_hint)
|
||||
}
|
||||
|
||||
binding.notificationSettingsView.sensitiveConversationSwitch.setOnCheckedChangeListener { _, isChecked ->
|
||||
binding.notificationSettingsView.callNotificationsSwitch.isChecked = !isChecked
|
||||
|
||||
binding.notificationSettingsView.sensitiveConversationSwitch.isChecked = conversation!!.hasSensitive
|
||||
|
||||
binding.notificationSettingsView.notificationSettingsSensitiveConversation.setOnClickListener {
|
||||
val isChecked = !binding.notificationSettingsView.sensitiveConversationSwitch.isChecked
|
||||
binding.notificationSettingsView.sensitiveConversationSwitch.isChecked = isChecked
|
||||
if (isChecked) {
|
||||
viewModel.markConversationAsSensitive(credentials, conversationUser.baseUrl!!, conversation?.token!!)
|
||||
viewModel.markConversationAsSensitive(
|
||||
credentials,
|
||||
conversationUser.baseUrl!!,
|
||||
conversation?.token!!
|
||||
)
|
||||
} else {
|
||||
viewModel.markConversationAsInsensitive(credentials, conversationUser.baseUrl!!, conversation?.token!!)
|
||||
viewModel.markConversationAsInsensitive(
|
||||
credentials,
|
||||
conversationUser.baseUrl!!,
|
||||
conversation?.token!!
|
||||
)
|
||||
}
|
||||
}
|
||||
if (hasSpreedFeatureCapability(spreedCapabilities, SpreedFeatures.SENSITIVE_CONVERSATIONS)) {
|
||||
@ -1777,8 +1784,6 @@ class ConversationInfoActivity :
|
||||
binding.notificationSettingsView.importantConversationSwitch.isChecked = module
|
||||
.getBoolean("important_conversation_switch", false)
|
||||
|
||||
binding.notificationSettingsView.sensitiveConversationSwitch.isChecked = conversation!!.hasSensitive
|
||||
|
||||
if (conversation!!.remoteServer.isNullOrEmpty()) {
|
||||
binding.notificationSettingsView.notificationSettingsCallNotifications.visibility = VISIBLE
|
||||
binding.notificationSettingsView.callNotificationsSwitch.isChecked = module
|
||||
|
Loading…
Reference in New Issue
Block a user