refactor: Avoid unnecessary bool comparison
This commit is contained in:
parent
d08364688e
commit
1cd3a91037
15 changed files with 26 additions and 25 deletions
|
|
@ -50,7 +50,7 @@ Future<String?> getDatabaseCipher() async {
|
|||
void _sendNoEncryptionWarning(Object exception) async {
|
||||
final isStored = AppSettings.noEncryptionWarningShown.value;
|
||||
|
||||
if (isStored == true) return;
|
||||
if (isStored) return;
|
||||
|
||||
final l10n = await lookupL10n(PlatformDispatcher.instance.locale);
|
||||
ClientManager.sendInitNotification(
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ class VoipPlugin with WidgetsBindingObserver implements WebRTCDelegate {
|
|||
|
||||
await matrix.store.setString(
|
||||
'wasForeground',
|
||||
wasForeground == true ? 'true' : 'false',
|
||||
wasForeground ? 'true' : 'false',
|
||||
);
|
||||
FlutterForegroundTask.setOnLockScreenVisibility(true);
|
||||
FlutterForegroundTask.wakeUpScreen();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue