chore: Follow up update matrix dart sdk
Signed-off-by: Krille <c.kussowski@famedly.com>
This commit is contained in:
parent
e8fec08341
commit
430099b30a
1 changed files with 1 additions and 20 deletions
|
|
@ -1,14 +1,13 @@
|
||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
import 'dart:math';
|
import 'dart:math';
|
||||||
|
|
||||||
|
import 'package:fluffychat/utils/other_party_can_receive.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||||
import 'package:http/http.dart';
|
import 'package:http/http.dart';
|
||||||
import 'package:matrix/encryption.dart';
|
import 'package:matrix/encryption.dart';
|
||||||
import 'package:matrix/matrix.dart';
|
import 'package:matrix/matrix.dart';
|
||||||
|
|
||||||
import 'package:fluffychat/utils/other_party_can_receive.dart';
|
|
||||||
import 'uia_request_manager.dart';
|
import 'uia_request_manager.dart';
|
||||||
|
|
||||||
extension LocalizedExceptionExtension on Object {
|
extension LocalizedExceptionExtension on Object {
|
||||||
|
|
@ -57,24 +56,6 @@ extension LocalizedExceptionExtension on Object {
|
||||||
if (this is InvalidPassphraseException) {
|
if (this is InvalidPassphraseException) {
|
||||||
return L10n.of(context).wrongRecoveryKey;
|
return L10n.of(context).wrongRecoveryKey;
|
||||||
}
|
}
|
||||||
if (this is BadServerVersionsException) {
|
|
||||||
final serverVersions = (this as BadServerVersionsException)
|
|
||||||
.serverVersions
|
|
||||||
.toString()
|
|
||||||
.replaceAll('{', '"')
|
|
||||||
.replaceAll('}', '"');
|
|
||||||
final supportedVersions = (this as BadServerVersionsException)
|
|
||||||
.supportedVersions
|
|
||||||
.toString()
|
|
||||||
.replaceAll('{', '"')
|
|
||||||
.replaceAll('}', '"');
|
|
||||||
return L10n.of(context).badServerVersionsException(
|
|
||||||
serverVersions,
|
|
||||||
supportedVersions,
|
|
||||||
serverVersions,
|
|
||||||
supportedVersions,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
if (this is BadServerLoginTypesException) {
|
if (this is BadServerLoginTypesException) {
|
||||||
final serverVersions = (this as BadServerLoginTypesException)
|
final serverVersions = (this as BadServerLoginTypesException)
|
||||||
.serverLoginTypes
|
.serverLoginTypes
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue