[LibOlm] Update to fix encryption

This commit is contained in:
Christian Pauly 2020-03-02 09:28:59 +01:00
parent f681bf93ab
commit 208ee0581a
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