mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-25 06:52:35 +01:00
Merge branch 'soru/better-key-sharing' into 'master'
Ignore key sharing requests by others than us See merge request ChristianPauly/fluffychat-flutter!83
This commit is contained in:
commit
a56a455e6b
@ -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…
Reference in New Issue
Block a user