[Room] Decrypt only encrypted events

This commit is contained in:
Christian Pauly 2020-02-19 08:54:56 +01:00
parent 33c08a042b
commit d05d22e6af
2 changed files with 3 additions and 2 deletions

View file

@ -1502,6 +1502,7 @@ class Room {
/// Decrypts the given [event] with one of the available ingoingGroupSessions.
Event decryptGroupMessage(Event event) {
if (event.type != EventTypes.Encrypted) return event;
Map<String, dynamic> decryptedPayload;
try {
if (!client.encryptionEnabled) {

View file

@ -292,8 +292,8 @@ packages:
dependency: "direct main"
description:
path: "."
ref: "09eb49dbdb1ad9ed71c6bf74562250ecd3d4198b"
resolved-ref: "09eb49dbdb1ad9ed71c6bf74562250ecd3d4198b"
ref: "307dc133867eb5bf80d4f5c7412e58621dfca3cf"
resolved-ref: "307dc133867eb5bf80d4f5c7412e58621dfca3cf"
url: "https://gitlab.com/famedly/libraries/dart-olm.git"
source: git
version: "0.0.0"