feat(all): Fix linter issues.

Signed-off-by: Ikjot Singh Dhody <ikjotsd@gmail.com>
This commit is contained in:
Ikjot Singh Dhody 2023-08-09 22:34:00 +05:30
parent 26bcaccd81
commit 549e61a168
4 changed files with 4 additions and 6 deletions

View File

@ -1,5 +1,3 @@
import 'package:moxxyv2/shared/models/conversation.dart';
/// Conversion helpers for bool <-> int as sqlite has no "real" booleans
int boolToInt(bool b) => b ? 1 : 0;
bool intToBool(int i) => i == 0 ? false : true;

View File

@ -1,5 +1,6 @@
import 'dart:async';
import 'dart:convert';
import 'package:collection/collection.dart';
import 'package:flutter/foundation.dart';
import 'package:get_it/get_it.dart';
@ -11,10 +12,9 @@ import 'package:moxxyv2/service/blocking.dart';
import 'package:moxxyv2/service/connectivity.dart';
import 'package:moxxyv2/service/contacts.dart';
import 'package:moxxyv2/service/conversation.dart';
import 'package:moxxyv2/service/groupchat.dart';
import 'package:moxxyv2/service/database/constants.dart';
import 'package:moxxyv2/service/database/database.dart';
import 'package:moxxyv2/service/database/helpers.dart';
import 'package:moxxyv2/service/groupchat.dart';
import 'package:moxxyv2/service/helpers.dart';
import 'package:moxxyv2/service/httpfiletransfer/helpers.dart';
import 'package:moxxyv2/service/httpfiletransfer/httpfiletransfer.dart';

View File

@ -12,7 +12,8 @@ class GroupchatService {
/// Returns a [Future] that resolves to a [RoomInformation] object containing
/// details about the room.
Future<Result<RoomInformation, MUCError>> getRoomInformation(
JID roomJID) async {
JID roomJID,
) async {
final conn = GetIt.I.get<XmppConnection>();
final mm = conn.getManagerById<MUCManager>(mucManager)!;
final result = await mm.queryRoomInformation(roomJID);

View File

@ -3,7 +3,6 @@ import 'package:collection/collection.dart';
import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:get_it/get_it.dart';
import 'package:moxplatform/moxplatform.dart';
import 'package:moxxyv2/service/database/helpers.dart';
import 'package:moxxyv2/shared/commands.dart';
import 'package:moxxyv2/shared/events.dart';
import 'package:moxxyv2/shared/models/conversation.dart';