fix error thingy

This commit is contained in:
Sorunome 2020-05-27 21:49:49 +02:00
parent c779d39818
commit 6e21cff0a7
No known key found for this signature in database
GPG key ID: B19471D07FC9BE9C

View file

@ -1466,6 +1466,7 @@ class Client {
_updateRoomsByEventUpdate(update); _updateRoomsByEventUpdate(update);
if (event['type'].startsWith('m.key.verification.') || if (event['type'].startsWith('m.key.verification.') ||
(event['type'] == 'm.room.message' && (event['type'] == 'm.room.message' &&
(event['content']['msgtype'] is String) &&
event['content']['msgtype'].startsWith('m.key.verification.'))) { event['content']['msgtype'].startsWith('m.key.verification.'))) {
_handleRoomKeyVerificationRequest(update); _handleRoomKeyVerificationRequest(update);
} }