Merge branch 'olm-fix-encryption' into 'master'

[LibOlm] Update to fix encryption

See merge request famedly/famedlysdk!231
This commit is contained in:
Christian Pauly 2020-03-02 08:33:43 +00:00
commit 5eda493ba2
3 changed files with 4 additions and 4 deletions

View file

@ -1617,7 +1617,7 @@ class Client {
List<olm.Session> existingSessions = olmSessions[senderKey];
if (existingSessions != null) {
for (olm.Session session in existingSessions) {
if (type == 0 && session.matches_inbound(body) != 0) {
if (type == 0 && session.matches_inbound(body) == true) {
plaintext = session.decrypt(type, body);
storeOlmSession(senderKey, session);
break;

View file

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

View file

@ -15,7 +15,7 @@ dependencies:
olm:
git:
url: https://gitlab.com/famedly/libraries/dart-olm.git
ref: 307dc133867eb5bf80d4f5c7412e58621dfca3cf
ref: bbc7ce10a52be5d5c10d2eb6c3591aade71356e2
dev_dependencies:
test: ^1.0.0