Ignore key sharing requests by others than us
This commit is contained in:
parent
a4e08eeec8
commit
f991f6cf94
1 changed files with 3 additions and 0 deletions
|
|
@ -170,6 +170,9 @@ class MatrixState extends State<Matrix> {
|
||||||
onRoomKeyRequestSub ??=
|
onRoomKeyRequestSub ??=
|
||||||
client.onRoomKeyRequest.stream.listen((RoomKeyRequest request) async {
|
client.onRoomKeyRequest.stream.listen((RoomKeyRequest request) async {
|
||||||
final room = request.room;
|
final room = request.room;
|
||||||
|
if (request.sender != room.client.userID) {
|
||||||
|
return; // ignore share requests by others
|
||||||
|
}
|
||||||
final sender = room.getUserByMXIDSync(request.sender);
|
final sender = room.getUserByMXIDSync(request.sender);
|
||||||
if (await SimpleDialogs(context).askConfirmation(
|
if (await SimpleDialogs(context).askConfirmation(
|
||||||
titleText: L10n.of(context).requestToReadOlderMessages,
|
titleText: L10n.of(context).requestToReadOlderMessages,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue