|
|
|
@ -8,6 +8,7 @@ import 'package:http/http.dart';
|
|
|
|
|
import 'package:matrix/encryption.dart';
|
|
|
|
|
import 'package:matrix/matrix.dart';
|
|
|
|
|
|
|
|
|
|
import 'package:fluffychat/utils/other_party_can_receive.dart';
|
|
|
|
|
import 'uia_request_manager.dart';
|
|
|
|
|
|
|
|
|
|
extension LocalizedExceptionExtension on Object {
|
|
|
|
@ -34,6 +35,9 @@ extension LocalizedExceptionExtension on Object {
|
|
|
|
|
_formatFileSize(exception.maxFileSize),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
if (this is OtherPartyCanNotReceiveMessages) {
|
|
|
|
|
return L10n.of(context).otherPartyNotLoggedIn;
|
|
|
|
|
}
|
|
|
|
|
if (this is MatrixException) {
|
|
|
|
|
switch ((this as MatrixException).error) {
|
|
|
|
|
case MatrixError.M_FORBIDDEN:
|
|
|
|
|