refactor: Add more stricter lints
This commit is contained in:
parent
c59031c44c
commit
5283d0fcc8
15 changed files with 66 additions and 60 deletions
|
|
@ -231,7 +231,7 @@ class BackgroundPush {
|
|||
currentPushers.first.data.format ==
|
||||
AppSettings.pushNotificationsPusherFormat.value &&
|
||||
mapEquals(currentPushers.single.data.additionalProperties, {
|
||||
"data_message": pusherDataMessageFormat,
|
||||
'data_message': pusherDataMessageFormat,
|
||||
})) {
|
||||
Logs().i('[Push] Pusher already set');
|
||||
} else {
|
||||
|
|
@ -269,7 +269,7 @@ class BackgroundPush {
|
|||
data: PusherData(
|
||||
url: Uri.parse(gatewayUrl!),
|
||||
format: AppSettings.pushNotificationsPusherFormat.value,
|
||||
additionalProperties: {"data_message": pusherDataMessageFormat},
|
||||
additionalProperties: {'data_message': pusherDataMessageFormat},
|
||||
),
|
||||
kind: 'http',
|
||||
),
|
||||
|
|
@ -290,7 +290,7 @@ class BackgroundPush {
|
|||
static bool _wentToRoomOnStartup = false;
|
||||
|
||||
Future<void> setupPush() async {
|
||||
Logs().d("SetupPush");
|
||||
Logs().d('SetupPush');
|
||||
if (client.onLoginStateChanged.value != LoginState.loggedIn ||
|
||||
!PlatformInfos.isMobile ||
|
||||
matrix == null) {
|
||||
|
|
@ -371,7 +371,7 @@ class BackgroundPush {
|
|||
Future<void> setupUp() async {
|
||||
await UnifiedPushUi(
|
||||
context: matrix!.context,
|
||||
instances: ["default"],
|
||||
instances: ['default'],
|
||||
unifiedPushFunctions: UPFunctions(),
|
||||
showNoDistribDialog: false,
|
||||
onNoDistribDialogDismissed: () {}, // TODO: Implement me
|
||||
|
|
|
|||
|
|
@ -15,11 +15,11 @@ class ErrorReporter {
|
|||
const ErrorReporter(this.context, [this.message]);
|
||||
|
||||
static const Set<String> ingoredTypes = {
|
||||
"IOException",
|
||||
"ClientException",
|
||||
"SocketException",
|
||||
"TlsException",
|
||||
"HandshakeException",
|
||||
'IOException',
|
||||
'ClientException',
|
||||
'SocketException',
|
||||
'TlsException',
|
||||
'HandshakeException',
|
||||
};
|
||||
|
||||
void onErrorCallback(Object error, [StackTrace? stackTrace]) {
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@ class VoipPlugin with WidgetsBindingObserver implements WebRTCDelegate {
|
|||
FlutterForegroundTask.setOnLockScreenVisibility(false);
|
||||
FlutterForegroundTask.stopService();
|
||||
final wasForeground = matrix.store.getString('wasForeground');
|
||||
wasForeground == 'false' ? FlutterForegroundTask.minimizeApp() : null;
|
||||
if (wasForeground == 'false') FlutterForegroundTask.minimizeApp();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue