Default new notification profiles to allow calls.

This commit is contained in:
Cody Henthorne
2024-01-10 11:53:08 -05:00
committed by GitHub
parent 20f8c69b07
commit 64e9324aa0
7 changed files with 71 additions and 13 deletions

View File

@@ -111,6 +111,7 @@ class NotificationProfileDatabase(context: Context, databaseHelper: SignalDataba
put(NotificationProfileTable.EMOJI, emoji)
put(NotificationProfileTable.COLOR, color.serialize())
put(NotificationProfileTable.CREATED_AT, createdAt)
put(NotificationProfileTable.ALLOW_ALL_CALLS, 1)
}
val profileId = db.insert(NotificationProfileTable.TABLE_NAME, null, profileValues)
@@ -134,7 +135,8 @@ class NotificationProfileDatabase(context: Context, databaseHelper: SignalDataba
name = name,
emoji = emoji,
createdAt = createdAt,
schedule = getProfileSchedule(profileId)
schedule = getProfileSchedule(profileId),
allowAllCalls = true
)
)
} finally {