mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-24 22:17:25 +00:00
fix: don't display call option in conversation and don't show notification if option not enabled
This commit is contained in:
@@ -100,8 +100,7 @@ object ConversationMenuHelper {
|
||||
inflater.inflate(R.menu.menu_conversation_notification_settings, menu)
|
||||
}
|
||||
|
||||
// TODO: Call Tests
|
||||
if (!isOpenGroup) {
|
||||
if (!thread.isGroupRecipient && TextSecurePreferences.isCallNotificationsEnabled(context)) {
|
||||
inflater.inflate(R.menu.menu_conversation_call, menu)
|
||||
}
|
||||
|
||||
|
@@ -26,6 +26,7 @@ class CallMessageProcessor(private val context: Context, lifecycle: Lifecycle) {
|
||||
if (!TextSecurePreferences.isCallNotificationsEnabled(context)) {
|
||||
Log.d("Loki","Dropping call message if call notifications disabled")
|
||||
// TODO: maybe insert a message here saying you missed a call due to permissions
|
||||
continue
|
||||
}
|
||||
when (nextMessage.type) {
|
||||
OFFER -> incomingCall(nextMessage)
|
||||
|
Reference in New Issue
Block a user