mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-28 07:19:32 +01:00
Ignore key sharing requests by others than us
This commit is contained in:
parent
dfc3521d36
commit
d2ed760ce7
@ -170,6 +170,9 @@ class MatrixState extends State<Matrix> {
|
||||
onRoomKeyRequestSub ??=
|
||||
client.onRoomKeyRequest.stream.listen((RoomKeyRequest request) async {
|
||||
final room = request.room;
|
||||
if (request.sender != room.client.userID) {
|
||||
return; // ignore share requests by others
|
||||
}
|
||||
final sender = room.getUserByMXIDSync(request.sender);
|
||||
if (await SimpleDialogs(context).askConfirmation(
|
||||
titleText: L10n.of(context).requestToReadOlderMessages,
|
||||
|
Loading…
Reference in New Issue
Block a user