refactor: Avoid unnecessary bool comparison

This commit is contained in:
Christian Kußowski 2026-02-19 08:53:18 +01:00
commit 1cd3a91037
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
15 changed files with 26 additions and 25 deletions

View file

@ -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(

View file

@ -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();