Skip to content
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

Cleaning up some code and adding more suspend (removing most runBlocking) #6

Closed
wants to merge 6,898 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
6898 commits
Select commit Hold shift + click to select a range
593c944
Merge branch 'origin/develop' into Weblate.
weblate Feb 22, 2022
4cc8016
Clean and add Changelog
Feb 22, 2022
6d45886
Merge pull request #5294 from vector-im/feature/eric/roomlist-green-t…
bmarty Feb 22, 2022
d0413ae
Update paddings
Feb 22, 2022
79b511b
Merge pull request #5297 from vector-im/feature/fga/fix_bad_realm_usages
bmarty Feb 22, 2022
8e67e5d
Merge pull request #5301 from RiotTranslateBot/weblate-element-androi…
bmarty Feb 22, 2022
c4d9ba2
Remove duplicated string - keep the latest version.
bmarty Feb 22, 2022
ad2ee0e
Remove unused string
bmarty Feb 22, 2022
2f048d8
Remove unused string
bmarty Feb 22, 2022
672e798
Remove unused string
bmarty Feb 22, 2022
98b9f1b
Rename some string resources
bmarty Feb 22, 2022
407394b
Create template with the app name
bmarty Feb 22, 2022
e35d6a6
Create template with the app name
bmarty Feb 22, 2022
9cd4b5d
Create template with the app name
bmarty Feb 22, 2022
fa66f10
Create template with the app name
bmarty Feb 22, 2022
a9702c6
Fix lint issue
bmarty Feb 22, 2022
17fa463
Delete unused resource
bmarty Feb 22, 2022
1ce65d7
Use plurals for message_reaction_show_more. Fixes #5227
bmarty Feb 22, 2022
21fa026
Removing TODOs
Feb 22, 2022
9911233
Bubbles: clean and add changelog
Feb 22, 2022
5dced8b
Merge pull request #5258 from vector-im/feature/mna/5218-crash-at-reg…
bmarty Feb 22, 2022
bff663d
Merge pull request #5304 from vector-im/feature/bma/weblate_1_4_2
bmarty Feb 22, 2022
b4ceaef
moves diff-match-patch module to library
ericdecanini Feb 22, 2022
c1afb3d
moves attachment-viewer module to library
ericdecanini Feb 22, 2022
4651c45
moves multipicker module to library
ericdecanini Feb 22, 2022
44452c9
adds changelog file
ericdecanini Feb 22, 2022
ed80fe5
Revert recent change to fix a crash
bmarty Feb 22, 2022
6fd14c9
Typo in the filename
bmarty Feb 22, 2022
b746321
Towncrier
bmarty Feb 22, 2022
70bb100
Tidy up the changelog
bmarty Feb 22, 2022
bb0955f
change for fastlane
bmarty Feb 22, 2022
ad1c4bf
Merge branch 'release/1.4.2' into develop
bmarty Feb 22, 2022
cc77afb
Version++
bmarty Feb 22, 2022
d00a237
Update changelog
bmarty Feb 22, 2022
6e7aa01
Merge pull request #5303 from vector-im/feature/fga/improve_bubble_la…
bmarty Feb 22, 2022
924a4f8
Merge pull request #5309 from vector-im/feature/eric/modules-to-subfo…
bmarty Feb 22, 2022
6105d7b
Log `since` token when doing an incremental sync
erikjohnston Feb 23, 2022
6eae151
Newsfile
erikjohnston Feb 23, 2022
e3b67fe
#5313: Update reaction button layout.
Feb 23, 2022
bd8d71c
Notify channel on sanity test result
michaelkaye Feb 23, 2022
da9fdf1
#3296
ahmed-radhouane Feb 11, 2022
a9b8871
#3296
ahmed-radhouane Feb 11, 2022
f6c6e92
Delete Uncommitted_changes_before_rebase__Default_Changelist_.xml
ahmed-radhouane Feb 11, 2022
5deabfa
#4642 [Review]
ahmed-radhouane Feb 11, 2022
b39a3ab
#4642 [Review]
ahmed-radhouane Feb 11, 2022
91ab472
#3296
ahmed-radhouane Feb 22, 2022
276c526
Merge pull request #5158 from vector-im/feature/adm/ftue-post-account…
bmarty Feb 23, 2022
3707b4e
Merge pull request #5312 from vector-im/erikj/log_since_token
bmarty Feb 23, 2022
7997435
Also record `next_batch`
erikjohnston Feb 23, 2022
10b07c3
Newsfile
erikjohnston Feb 23, 2022
a2f3b43
Merge pull request #5316 from vector-im/feature/fga/update_reaction_b…
bmarty Feb 23, 2022
9a80ff7
fixing space menu items not being clicked on during sanity test
ouchadam Feb 23, 2022
507ddc2
adds forceLoginFallback debug feature
ericdecanini Feb 23, 2022
5a9cf0c
adding changelog entry
ouchadam Feb 23, 2022
7132488
adds feature flag usage to registration flow result
ericdecanini Feb 23, 2022
9e9dc1d
Merge pull request #5318 from vector-im/erikj/log_since_token
bmarty Feb 23, 2022
f18808b
refactors FtueAuthVariant with new feature flag on registration and s…
ericdecanini Feb 23, 2022
0bb4720
Do not install `synapse` only `matrix-synapse`.
michaelkaye Feb 23, 2022
5c4ca79
Remove use of explicit pip cache.
michaelkaye Feb 23, 2022
c2a67a0
Do not run synapse in a venv.
michaelkaye Feb 23, 2022
137d804
adds changelog file
ericdecanini Feb 23, 2022
64e0748
Merge remote-tracking branch 'origin/develop' into feature/eric/regis…
ericdecanini Feb 23, 2022
5bfb8fe
Merge pull request #5315 from vector-im/michaelk/notify_channel_on_sa…
michaelkaye Feb 23, 2022
c89f28f
adds missing brackets on multiline if statements
ericdecanini Feb 23, 2022
f63cd57
use appName instead of "element" in e2ee file name
Claire1817 Feb 23, 2022
fb2ed9a
Rename getTimeLine to getTimeline to align naming. Also create Timeli…
Feb 23, 2022
beeee7c
Realm: avoid opening realm if not necessary in ReadReceiptsSummaryMapper
Feb 23, 2022
f7c79a6
Realm: fix remaining frozen result
Feb 23, 2022
5cfcd65
Create a new resource in config file for default setting value. First…
bmarty Feb 4, 2022
b12c890
Also add a way to hide the setting to the user
bmarty Feb 14, 2022
e3209fd
Create module vector-config
bmarty Feb 23, 2022
96c2c6f
Move file config.xml to the module vector-config
bmarty Feb 23, 2022
830fca7
Move setting for preference in a dedicated file
bmarty Feb 23, 2022
03a6a34
Add boolean for visibility of all settings at root level
bmarty Feb 23, 2022
0087f72
Improve doc
bmarty Feb 23, 2022
93de61e
Merge pull request #5206 from vector-im/arb/issues/3296
bmarty Feb 23, 2022
9e7079d
Move from `continue_on_error` to `if: always()`.
michaelkaye Feb 23, 2022
ac4d748
Add concurrency to integration tests.
langleyd Feb 23, 2022
5bbd676
noop to test cancel
langleyd Feb 23, 2022
6397746
Add concurrency checks for unit tests, build and quality checks.
langleyd Feb 23, 2022
edb92f8
noop to test cancel
langleyd Feb 23, 2022
93131da
Merge pull request #5320 from vector-im/feature/adm/space-ui-failures
bmarty Feb 23, 2022
fd48fc9
Add changelog
Feb 23, 2022
aed4384
Translated using Weblate (Japanese)
oksya8and8 Feb 23, 2022
229a64d
Translated using Weblate (Japanese)
Feb 23, 2022
c8a290c
Translated using Weblate (Japanese)
oksya8and8 Feb 23, 2022
f150a82
Translated using Weblate (Japanese)
Feb 23, 2022
a91f59b
Translated using Weblate (Japanese)
oksya8and8 Feb 23, 2022
5c263d7
Translated using Weblate (Japanese)
Feb 23, 2022
d99b7b7
Translated using Weblate (Japanese)
oksya8and8 Feb 23, 2022
0dd5134
Translated using Weblate (Japanese)
Feb 23, 2022
43c125e
Use matrix.target to fix build group. Use env vars to clean up.
langleyd Feb 23, 2022
8c65285
try multiline expression for group sufficx
langleyd Feb 23, 2022
355931a
add env prefix.
langleyd Feb 23, 2022
cf7417d
Have to inline it as can't use env vars in other env vars.
langleyd Feb 23, 2022
80fd816
test cancel with noop
langleyd Feb 23, 2022
d561ad6
include matrix.target in apk-lint group
langleyd Feb 23, 2022
de7a572
noop to test cancel
langleyd Feb 23, 2022
93c6216
Add descriptions of concurrencies
langleyd Feb 23, 2022
d4a423b
Fix spacing
langleyd Feb 24, 2022
a8390ad
Merge pull request #5324 from vector-im/michaelk/rely_on_setup-python…
michaelkaye Feb 24, 2022
cc2653e
Translated using Weblate (Japanese)
Feb 24, 2022
bf8389a
Translated using Weblate (Japanese)
Feb 24, 2022
5512439
Merge pull request #5157 from vector-im/feature/bma/config_poc
bmarty Feb 24, 2022
1134238
Translated using Weblate (Czech)
waclaw66 Feb 23, 2022
c528602
Translated using Weblate (German)
HarHarLinks Feb 22, 2022
8d9b5eb
Translated using Weblate (Estonian)
Feb 23, 2022
01fe4c4
Translated using Weblate (Hungarian)
szimszon Feb 23, 2022
99f1180
Translated using Weblate (Indonesian)
Linerly Feb 22, 2022
7ba60a0
Translated using Weblate (Italian)
Feb 23, 2022
8a66726
Translated using Weblate (Japanese)
Feb 24, 2022
0046a3d
Translated using Weblate (Korean)
saschanaz Feb 23, 2022
6afc582
Translated using Weblate (Portuguese (Brazil))
Feb 23, 2022
9504bd9
Translated using Weblate (Slovak)
dodog Feb 24, 2022
ec11955
Translated using Weblate (Ukrainian)
IhorHordiichuk Feb 22, 2022
8866ad3
Translated using Weblate (Chinese (Traditional))
s8321414 Feb 23, 2022
2dc2494
Translated using Weblate (Hungarian)
szimszon Feb 22, 2022
6030685
Translated using Weblate (Portuguese (Brazil))
Feb 23, 2022
4b8e1a7
Translated using Weblate (Slovak)
dodog Feb 22, 2022
27d9f09
Translated using Weblate (Ukrainian)
IhorHordiichuk Feb 22, 2022
ac92815
Translated using Weblate (Estonian)
Feb 23, 2022
7316d0a
Translated using Weblate (Italian)
Feb 23, 2022
5245ce5
Translated using Weblate (Chinese (Traditional))
s8321414 Feb 23, 2022
bbef1a5
Translated using Weblate (Czech)
waclaw66 Feb 23, 2022
1e40641
Translated using Weblate (Indonesian)
Linerly Feb 22, 2022
5155245
Merge branch 'origin/develop' into Weblate.
weblate Feb 24, 2022
ca8b69e
Use correct copyright
bmarty Feb 24, 2022
4ebaa34
Reverts adding force login fallback flag to debug features
ericdecanini Feb 24, 2022
12a0b3c
Merge pull request #5329 from vector-im/michaelk/fail_integration_tests
michaelkaye Feb 24, 2022
2917d4e
Adds forceLoginFallback private setting
ericdecanini Feb 24, 2022
092761c
Adds forceLoginFallback private setting view
ericdecanini Feb 24, 2022
b226ab5
Merge pull request #5343 from RiotTranslateBot/weblate-element-androi…
bmarty Feb 24, 2022
d931992
Update plugin to generated string with template from `com.likethesala…
bmarty Feb 24, 2022
981393f
Changes copy value of forceLoginFallback to it
ericdecanini Feb 24, 2022
92c6d59
Adds private setting usage to FtueAuthVariant
ericdecanini Feb 24, 2022
7516a12
`template_` is not required anymore
bmarty Feb 24, 2022
3d57d72
Reorders some functions within FtueAuthVariant
ericdecanini Feb 24, 2022
8d0410d
Removes Global doNothing function
ericdecanini Feb 24, 2022
9f0cef7
Removes unnecessary exhaustive on when statement
ericdecanini Feb 24, 2022
40b1862
Remove duplicated string
bmarty Feb 24, 2022
779b5db
Add a python script to cleanly display outputs in the github logs
michaelkaye Feb 24, 2022
fbf29f6
Quick hack python to render the xml test output including times in a …
michaelkaye Feb 24, 2022
4d86f5f
Correct name of script
michaelkaye Feb 24, 2022
70c9418
Fix typo in script
michaelkaye Feb 24, 2022
00423f8
Changelog
bmarty Feb 24, 2022
5895c69
Remove temporary lint ignoring
bmarty Feb 24, 2022
65242df
Adds missing invalidation step to forceLoginFallback checkbox
ericdecanini Feb 24, 2022
a1f5493
Merge pull request #5348 from vector-im/feature/android-stem_2.0.0
bmarty Feb 24, 2022
8fc1f3c
Fix ktlint typo
langleyd Feb 24, 2022
9832f1e
Add matrix.target to apk-lint concurrency group for develop branch.
langleyd Feb 24, 2022
79a8652
Fix unit tests concurrency group naming.
langleyd Feb 24, 2022
9ddcaff
Adjust script to handle XML files
michaelkaye Feb 24, 2022
b525259
Adding changelog entry
Feb 22, 2022
3384a0c
TODO
Feb 22, 2022
6899b5b
Creating dedicated attachment interaction listener
Feb 23, 2022
042c57f
Renaming some methods to be more concise
Feb 23, 2022
0169396
Adding save icon into viewer
Feb 23, 2022
e6995cb
Draft
Feb 23, 2022
f64268e
Adding download media use case
Feb 23, 2022
38236e7
OnDownload callback
Feb 23, 2022
374ac45
Interface for UseCase
Feb 23, 2022
c6c4637
Creating a ViewModel
Feb 23, 2022
b17ce12
Calling use case inside ViewModel
Feb 24, 2022
7d7b1f3
Calling ViewModel inside Fragment
Feb 24, 2022
73ac3f3
Fixing DI + observing events
Feb 24, 2022
cdb1a96
Removing TODOs
Feb 24, 2022
4c09fb7
Moving base use case interface into core package
Feb 24, 2022
882b143
Permission and error handling
Feb 24, 2022
4260d2f
Updating Changelog entry
Feb 24, 2022
a583db4
Updating TODOs
Feb 24, 2022
157feb1
Updating order of message actions
Feb 24, 2022
7e308d1
Add comments where concurrency is not required so that it is consider…
langleyd Feb 24, 2022
aea78b7
Changing usage of viewModelScope to Session scope
Feb 24, 2022
ca56865
Bump libphonenumber from 8.12.43 to 8.12.44
dependabot[bot] Feb 24, 2022
4860ed9
replace empty space by - for debug app name
Claire1817 Feb 25, 2022
4e4702c
Fixing date of file creation
Feb 25, 2022
6230dfc
Removing section bloc comments
Feb 25, 2022
b8a0aa7
Merge pull request #5357 from vector-im/cgizard/ISSUE-5326
bmarty Feb 25, 2022
0ce5998
Log xml files we render.
michaelkaye Feb 25, 2022
e171fd2
Add lint rule
bmarty Feb 24, 2022
85b5965
Remove unused strings in build.gradle. Rely on BuildConfig fields only
bmarty Feb 24, 2022
fd17517
Remove unused strings
bmarty Feb 24, 2022
ba15fa6
Ignore unused resources if used only in F-Droid and Gplay variant
bmarty Feb 24, 2022
cb27608
Removing base use case interface
Feb 25, 2022
35204d2
Merge pull request #5339 from vector-im/michaelk/integration_test_ren…
michaelkaye Feb 25, 2022
58ffb01
Rename sanity test to nightly test, incorporate integration tests for…
michaelkaye Feb 25, 2022
56c6301
Adding unit tests
Feb 25, 2022
561dcbc
Remove translation of removed strings, using the IDE facility after a…
bmarty Feb 25, 2022
0855a9a
Merge pull request #5352 from vector-im/feature/bma/delete_unused_str…
bmarty Feb 25, 2022
957413c
Add changelog
bmarty Feb 25, 2022
b21a6fe
Merge pull request #5360 from vector-im/michaelk/integration_tests_ni…
michaelkaye Feb 25, 2022
ce9c556
Sync analytics plan
bmarty Feb 28, 2022
fbd5456
Merge pull request #5353 from vector-im/dependabot/gradle/com.googlec…
bmarty Feb 28, 2022
0170171
Adding missing spaces after comments
Feb 28, 2022
7950723
Remove duplicate sanity_test.yml - now in nightly.yml
michaelkaye Feb 28, 2022
8d5d064
Merge pull request #5373 from vector-im/michaelk/remove_extra_workflow
michaelkaye Feb 28, 2022
562780a
Adding a FakeFile class for unit tests
Feb 28, 2022
6c4dd54
Merge branch 'develop' of github.com:vector-im/element-android into f…
langleyd Feb 28, 2022
c61af45
Fix spacing
langleyd Feb 28, 2022
2790506
Merge pull request #5325 from vector-im/feature/eric/registration-fea…
bmarty Feb 28, 2022
d5cb315
Merge pull request #5328 from vector-im/feature/dla/ci_check_concurrency
bmarty Feb 28, 2022
80bc3af
Merge pull request #5349 from vector-im/feature/mna/5005-save-image
bmarty Feb 28, 2022
1ef26e6
Adding changelog entry
Feb 21, 2022
836bf4e
DRAFT TODO
Feb 21, 2022
46854b4
Moving DM creation/opening into the member profile screen
Feb 21, 2022
96f041a
Remove handling of direct message from timeline fragment
Feb 22, 2022
e32e006
Add SDK changelog.
Feb 28, 2022
b3e6ff6
Allow workflows to be triggered manually without sending notification…
michaelkaye Feb 28, 2022
bb57b6f
Merge branch 'develop' into michaelk/force_java_version
michaelkaye Feb 28, 2022
ae98185
Cleanup enabling threads from buildConfig
ariskotsomitopoulos Feb 28, 2022
1f5f8bb
Merge pull request #5376 from vector-im/michaelk/force_java_version
michaelkaye Feb 28, 2022
f6ad06b
Add changelog
ariskotsomitopoulos Feb 28, 2022
34e4674
Update README.md
michaelkaye Feb 28, 2022
221e9b8
Ensure we have logcat for nightly runs
michaelkaye Feb 28, 2022
39d1fc9
Use pkill (killall has a failuremode of killing PID 1 on some systems)
michaelkaye Feb 28, 2022
71aac37
Merge pull request #5330 from vector-im/feature/fga/more_realm_fixing
bmarty Feb 28, 2022
9cc3564
Merge pull request #5379 from vector-im/feature/aris/cleanup_threads_…
bmarty Feb 28, 2022
781a477
Merge pull request #5292 from vector-im/feature/mna/4319-dm-space-mem…
bmarty Feb 28, 2022
4c882e8
Bump michaelkaye/matrix-hookshot-action from 0.2.0 to 0.3.0
dependabot[bot] Feb 28, 2022
e776ff4
Bump actions/setup-python from 2 to 3
dependabot[bot] Feb 28, 2022
27f7fad
Bump oss-licenses-plugin from 0.10.4 to 0.10.5
dependabot[bot] Feb 28, 2022
e650707
Merge branch 'develop' into sync-analytics-plan
Mar 1, 2022
ec786af
Merge pull request #5381 from vector-im/dependabot/github_actions/mic…
michaelkaye Mar 1, 2022
1b1a9bf
Merge pull request #5267 from vector-im/sync-analytics-plan
bmarty Mar 1, 2022
1216dde
ignore KeysBackup tests
frakic Feb 28, 2022
d6cd3f5
Upgrades to material 1.5.0 library
ericdecanini Mar 1, 2022
b8fad69
Merge pull request #5386 from vector-im/frakic/5362/ignore_KeysBackup…
bmarty Mar 1, 2022
b1c2bcc
Adds changelog file
ericdecanini Mar 1, 2022
ad88091
Fix overflow on media cache size
tgloureiro Mar 1, 2022
9a4d37b
Add changelog
tgloureiro Mar 1, 2022
d4caad1
Merge pull request #5396 from tgloureiro/develop
bmarty Mar 1, 2022
7e909de
Merge pull request #5392 from vector-im/eric/update-material-library-…
bmarty Mar 1, 2022
1c94a7d
Merge pull request #5382 from vector-im/dependabot/github_actions/act…
bmarty Mar 1, 2022
0c62890
Lifting debug overrides to their own abstraction (#5361)
ouchadam Mar 2, 2022
74040c5
Merge pull request #5387 from vector-im/michaelk/nightly_tests_logcat
michaelkaye Mar 2, 2022
4bbb60c
White list group `org.webjars`
bmarty Mar 2, 2022
99e5a8f
FTUE - Choose a display name (#5211)
ouchadam Mar 2, 2022
10f480b
adding missing VectorOverrides param from test instance creation and …
ouchadam Mar 2, 2022
7024ccb
Merge pull request #5409 from vector-im/feature/adm/test-compilation-…
bmarty Mar 2, 2022
4396390
Fix lint error (false positive, but anyway, not used)
bmarty Mar 2, 2022
840742c
Lint: "MissingQuantity" -> warning
bmarty Mar 3, 2022
dd0d2e8
Merge pull request #5383 from vector-im/dependabot/gradle/com.google.…
bmarty Mar 3, 2022
16a31e1
adding new dependency allowances for latest dependency upgrades
ouchadam Mar 3, 2022
7a1322b
Merge pull request #5415 from vector-im/feature/adm/missing-allowed-d…
bmarty Mar 3, 2022
6e6b04c
Merge pull request #4498 from vector-im/yostyle/fix_strandhogg
yostyle Mar 3, 2022
b8637dd
Merge branch 'develop' of https://github.com/vector-im/element-androi…
Mar 3, 2022
2f16a2e
Clean up some code
Mar 4, 2022
dc4569d
Remove warnings as error for now
Mar 4, 2022
7436647
Merge pull request #4 from poljar/rust_upstream_develop
ganfra Mar 10, 2022
e121007
Remove rust dependencies and use published aar
Mar 28, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -146,7 +146,6 @@ internal class DefaultCryptoService @Inject constructor(

private val olmMachine by lazy { olmMachineProvider.olmMachine }


// The verification service.
// private var verificationService: RustVerificationService? = null

@@ -166,7 +165,7 @@ internal class DefaultCryptoService @Inject constructor(
}

fun onLiveEvent(roomId: String, event: Event) {
if(event.isStateEvent()){
if (event.isStateEvent()) {
when (event.getClearType()) {
EventType.STATE_ROOM_ENCRYPTION -> onRoomEncryptionEvent(roomId, event)
EventType.STATE_ROOM_MEMBER -> onRoomMembershipEvent(roomId, event)
Original file line number Diff line number Diff line change
@@ -372,22 +372,22 @@ internal class RustKeyBackupService @Inject constructor(
}
}

override suspend fun onSecretKeyGossip(curveKeyBase64: String) {
override suspend fun onSecretKeyGossip(secret: String) {
Timber.i("## CrossSigning - onSecretKeyGossip")
withContext(coroutineDispatchers.crypto) {
try {
val version = sender.getKeyBackupVersion()

if (version != null) {
val key = BackupRecoveryKey.fromBase64(curveKeyBase64)
val key = BackupRecoveryKey.fromBase64(secret)
if (isValidRecoveryKey(key, version)) {
trustKeysBackupVersion(version, true)
// we don't want to wait for that
importScope.launch {
try {
val importResult = restoreBackup(version, key, null, null, null)

Timber.i("onSecretKeyGossip: Recovered keys ${importResult.successfullyNumberOfImportedKeys} out of ${importResult.totalNumberOfKeys}")
val recoveredKeys = importResult.successfullyNumberOfImportedKeys
Timber.i("onSecretKeyGossip: Recovered keys $recoveredKeys out of ${importResult.totalNumberOfKeys}")
} catch (failure: Throwable) {
// fail silently..
Timber.e(failure, "onSecretKeyGossip: Failed to import keys from backup")
@@ -514,7 +514,8 @@ internal class RustKeyBackupService @Inject constructor(
.flatten()

withContext(Dispatchers.Main) {
stepProgressListener?.onStepProgress(StepProgressListener.Step.DecryptingKey(data.roomIdToRoomKeysBackupData.size, data.roomIdToRoomKeysBackupData.size))
val stepProgress = StepProgressListener.Step.DecryptingKey(data.roomIdToRoomKeysBackupData.size, data.roomIdToRoomKeysBackupData.size)
stepProgressListener?.onStepProgress(stepProgress)
}

Timber.v("restoreKeysWithRecoveryKey: Decrypted ${sessionsData.size} keys out" +
@@ -532,7 +533,8 @@ internal class RustKeyBackupService @Inject constructor(
object : ProgressListener {
override fun onProgress(progress: Int, total: Int) {
cryptoCoroutineScope.launch(Dispatchers.Main) {
stepProgressListener.onStepProgress(StepProgressListener.Step.ImportingKey(progress, total))
val stepProgress = StepProgressListener.Step.ImportingKey(progress, total)
stepProgressListener.onStepProgress(stepProgress)
}
}
}
Original file line number Diff line number Diff line change
@@ -18,9 +18,8 @@ package org.matrix.android.sdk.internal.session.room.summary

import io.realm.Realm
import io.realm.kotlin.createObject
import org.matrix.android.sdk.api.session.crypto.crosssigning.CrossSigningService
import org.matrix.android.sdk.api.extensions.orFalse
import org.matrix.android.sdk.api.extensions.tryOrNull
import org.matrix.android.sdk.api.session.crypto.crosssigning.CrossSigningService
import org.matrix.android.sdk.api.session.events.model.EventType
import org.matrix.android.sdk.api.session.events.model.toModel
import org.matrix.android.sdk.api.session.room.accountdata.RoomAccountDataTypes