Skip to content

Commit 055e8e8

Browse files
ariskotsomitopoulosBillCarsonFr
authored andcommitted
Fix existing E2eeSanityTests to support changes for key history sharing
1 parent 57bd745 commit 055e8e8

File tree

1 file changed

+2
-3
lines changed
  • matrix-sdk-android/src/androidTest/java/org/matrix/android/sdk/internal/crypto

1 file changed

+2
-3
lines changed

matrix-sdk-android/src/androidTest/java/org/matrix/android/sdk/internal/crypto/E2eeSanityTests.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,16 +146,15 @@ class E2eeSanityTests : InstrumentedTest {
146146
delay(3_000)
147147
}
148148

149-
// check that messages are encrypted (uisi)
149+
// Due to the new shared keys implementation, invited user should be able to decrypt messages
150150
newAccount.forEach { otherSession ->
151151
testHelper.waitWithLatch { latch ->
152152
testHelper.retryPeriodicallyWithLatch(latch) {
153153
val timelineEvent = otherSession.getRoom(e2eRoomID)?.getTimelineEvent(sentEventId!!).also {
154154
Log.v("#E2E TEST", "Event seen by new user ${it?.root?.getClearType()}|${it?.root?.mCryptoError}")
155155
}
156156
timelineEvent != null &&
157-
timelineEvent.root.getClearType() == EventType.ENCRYPTED &&
158-
timelineEvent.root.mCryptoError == MXCryptoError.ErrorType.UNKNOWN_INBOUND_SESSION_ID
157+
timelineEvent.root.getClearType() == EventType.MESSAGE
159158
}
160159
}
161160
}

0 commit comments

Comments
 (0)