Merge branch 'room-fix-decrypt-only-encrypted-events' into 'master'

[Room] Decrypt only encrypted events

See merge request famedly/famedlysdk!205
This commit is contained in:
Christian Pauly 2020-02-19 08:26:17 +00:00
commit f1bd1ec398
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"