[LibOlm] Update to fix encryption
This commit is contained in:
parent
f681bf93ab
commit
208ee0581a
|
@ -1617,7 +1617,7 @@ class Client {
|
||||||
List<olm.Session> existingSessions = olmSessions[senderKey];
|
List<olm.Session> existingSessions = olmSessions[senderKey];
|
||||||
if (existingSessions != null) {
|
if (existingSessions != null) {
|
||||||
for (olm.Session session in existingSessions) {
|
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);
|
plaintext = session.decrypt(type, body);
|
||||||
storeOlmSession(senderKey, session);
|
storeOlmSession(senderKey, session);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -292,8 +292,8 @@ packages:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
path: "."
|
path: "."
|
||||||
ref: "307dc133867eb5bf80d4f5c7412e58621dfca3cf"
|
ref: bbc7ce10a52be5d5c10d2eb6c3591aade71356e2
|
||||||
resolved-ref: "307dc133867eb5bf80d4f5c7412e58621dfca3cf"
|
resolved-ref: bbc7ce10a52be5d5c10d2eb6c3591aade71356e2
|
||||||
url: "https://gitlab.com/famedly/libraries/dart-olm.git"
|
url: "https://gitlab.com/famedly/libraries/dart-olm.git"
|
||||||
source: git
|
source: git
|
||||||
version: "0.0.0"
|
version: "0.0.0"
|
||||||
|
|
|
@ -15,7 +15,7 @@ dependencies:
|
||||||
olm:
|
olm:
|
||||||
git:
|
git:
|
||||||
url: https://gitlab.com/famedly/libraries/dart-olm.git
|
url: https://gitlab.com/famedly/libraries/dart-olm.git
|
||||||
ref: 307dc133867eb5bf80d4f5c7412e58621dfca3cf
|
ref: bbc7ce10a52be5d5c10d2eb6c3591aade71356e2
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
test: ^1.0.0
|
test: ^1.0.0
|
||||||
|
|
Loading…
Reference in a new issue