Ignore key sharing requests by others than us

This commit is contained in:
Sorunome 2020-06-24 21:10:54 +02:00
parent dfc3521d36
commit d2ed760ce7
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C

View File

@ -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,