Add e2ee settings

This commit is contained in:
Christian Pauly
2020-02-04 14:42:35 +01:00
parent 178e50a564
commit c6c419f76d
15 changed files with 357 additions and 50 deletions

View File

@ -1,6 +1,6 @@
import 'package:bubble/bubble.dart';
import 'package:famedlysdk/famedlysdk.dart';
import 'package:fluffychat/components/dialogs/redact_message_dialog.dart';
import 'package:fluffychat/components/dialogs/confirm_dialog.dart';
import 'package:fluffychat/components/message_content.dart';
import 'package:fluffychat/i18n/i18n.dart';
import 'package:fluffychat/utils/app_route.dart';
@ -107,7 +107,12 @@ class Message extends StatelessWidget {
case "remove":
await showDialog(
context: context,
builder: (BuildContext context) => RedactMessageDialog(event),
builder: (BuildContext context) => ConfirmDialog(
I18n.of(context).messageWillBeRemovedWarning,
I18n.of(context).remove, (context) {
Matrix.of(context)
.tryRequestWithLoadingDialog(event.redact());
}),
);
break;
case "resend":