refactor: Improved share / forward dialog

This commit is contained in:
krille-chan 2024-12-01 10:41:13 +01:00
commit 88e63d127a
No known key found for this signature in database
9 changed files with 488 additions and 361 deletions

View file

@ -176,18 +176,6 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
Client? getClientByName(String name) =>
widget.clients.firstWhereOrNull((c) => c.clientName == name);
Map<String, dynamic>? get shareContent => _shareContent;
set shareContent(Map<String, dynamic>? content) {
_shareContent = content;
onShareContentChanged.add(_shareContent);
}
Map<String, dynamic>? _shareContent;
final StreamController<Map<String, dynamic>?> onShareContentChanged =
StreamController.broadcast();
final onRoomKeyRequestSub = <String, StreamSubscription>{};
final onKeyVerificationRequestSub = <String, StreamSubscription>{};
final onNotification = <String, StreamSubscription>{};