-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
runfix: Correctly check if user has mls device before performing mls operations #17344
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,7 @@ import {getLogger, Logger} from 'Util/Logger'; | |
import {includesString} from 'Util/StringUtil'; | ||
import {TIME_IN_MILLIS} from 'Util/TimeUtil'; | ||
import {appendParameter} from 'Util/UrlUtil'; | ||
import {checkIndexedDb, supportsMLS} from 'Util/util'; | ||
import {checkIndexedDb} from 'Util/util'; | ||
|
||
import '../../style/default.less'; | ||
import {AssetRepository} from '../assets/AssetRepository'; | ||
|
@@ -443,7 +443,7 @@ export class App { | |
// We load all the users the self user is connected with | ||
await userRepository.loadUsers(selfUser, connections, conversations, teamMembers); | ||
|
||
if (supportsMLS()) { | ||
if (this.core.hasMLSDevice) { | ||
//if mls is supported, we need to initialize the callbacks (they are used when decrypting messages) | ||
conversationRepository.initMLSConversationRecoveredListener(); | ||
conversationRepository.registerMLSConversationVerificationStateHandler( | ||
|
@@ -472,7 +472,7 @@ export class App { | |
|
||
await conversationRepository.init1To1Conversations(connections, conversations); | ||
|
||
if (supportsMLS()) { | ||
if (this.core.hasMLSDevice) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this one is the fix to automation correct? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. exactly, I'm working on the fix right now :) |
||
//add the potential `self` and `team` conversations | ||
await initialiseSelfAndTeamConversations(conversations, selfUser, clientEntity.id, this.core); | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we have a MLS device it means that:
(it a more exhaustive check than the previous
supportsMLS
check)