[Backport staging] use correct default for notification silencing (#9389)

Co-authored-by: Kerry <kerrya@element.io>
This commit is contained in:
ElementRobot
2022-10-11 17:27:36 +01:00
committed by GitHub
co-authored by Kerry
parent 9dc82fb486
commit 67cae5fe45
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -47,8 +47,8 @@ describe('notifications', () => {
});
describe('localNotificationsAreSilenced', () => {
it('defaults to true when no setting exists', () => {
expect(localNotificationsAreSilenced(mockClient)).toBeTruthy();
it('defaults to false when no setting exists', () => {
expect(localNotificationsAreSilenced(mockClient)).toBeFalsy();
});
it('checks the persisted value', () => {
mockClient.setAccountData(accountDataEventKey, { is_silenced: true });