Skip to content

Commit

Permalink
Merge pull request #334 from syphon-org/fix/olm-decryption-issue
Browse files Browse the repository at this point in the history
[fix] Decryption Issues
  • Loading branch information
ereio committed Aug 21, 2021
2 parents c3c916b + abc772c commit 487e902
Show file tree
Hide file tree
Showing 17 changed files with 421 additions and 360 deletions.
18 changes: 18 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/230.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
0.1.13

🔮 New Features:
- Multi-Account Support 🎉
- Advanced Color Customization
- Customizable FAB Settings
- Manual Verification Data Exposed
- New and Improved Languages Through Weblate!
- German, Portuguese, Dutch, Czech, Slovak, and more!

🐛 Bug Fixes
- Issue with decrypting messages from other clients (pre-key failures)
- Issue with profile preview modal loading indefinitely
- Issue with decrypting events for new chats
- Issue with completing multi step onboarding flows

📐 Refactoring
- Lots!
1 change: 1 addition & 0 deletions lib/cache/middleware.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ bool cacheMiddleware(Store<AppState> store, dynamic action) {
case SetOlmAccount:
case SetOlmAccountBackup:
case SetDeviceKeysOwned:
case SaveKeySession:
case SetUser:
case ResetCrypto:
case ResetUser:
Expand Down
2 changes: 1 addition & 1 deletion lib/global/libs/matrix/encryption.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Algorithms {
class Keys {
static String fingerprintId({String? deviceId}) => '${Algorithms.ed25519}:$deviceId';
static String identityKeyId({String? deviceId}) => '${Algorithms.curve25591}:$deviceId';
static String oneTimeKey({String? deviceId}) => '${Algorithms.signedcurve25519}:$deviceId';
static String oneTimeKeyId({String? keyId}) => '${Algorithms.signedcurve25519}:$keyId';
}

abstract class Encryption {
Expand Down
3 changes: 1 addition & 2 deletions lib/storage/middleware.dart
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,10 @@ storageMiddleware(Database storage) {
case SetDeviceKeys:
case SetOneTimeKeysCounts:
case SetOneTimeKeysClaimed:
case AddInboundKeySession:
case AddInboundMessageSession:
case AddOutboundKeySession:
case AddOutboundMessageSession:
case UpdateMessageSessionOutbound:
case SaveKeySession:
case ResetCrypto:
saveCrypto(store.state.cryptoStore, storage: storage);
break;
Expand Down
1 change: 1 addition & 0 deletions lib/store/auth/actions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ ThunkAction<AppState> startAuthObserver() {
onAuthStateChanged(User? user) async {
if (user != null && user.accessToken != null) {
await store.dispatch(fetchAuthUserProfile());
await store.dispatch(fetchDevices());

// init encryption for E2EE
await store.dispatch(initKeyEncryption(user));
Expand Down

0 comments on commit 487e902

Please sign in to comment.