Merge pull request #3001 from timokoesters/fix-parsing-servername

fix: make cross signing work with server names containing :
This commit is contained in:
Benoit Marty 2021-03-16 14:46:47 +01:00 committed by GitHub
commit 4273a6a1be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -48,6 +48,7 @@ Bugfix 🐛:
- Be robust if Event.type is missing (#2946)
- Snappier message send status
- Fix MainActivity display (#2927)
- Cross signing now works with servers with an explicit port in the servername
Translations 🗣:
- All string resources and translations have been moved to the application module. Weblate project for the SDK will be removed.

View file

@ -108,7 +108,7 @@ internal class DeviceListManager @Inject constructor(private val cryptoStore: IM
if (':' in userId) {
try {
synchronized(notReadyToRetryHS) {
res = !notReadyToRetryHS.contains(userId.substringAfterLast(':'))
res = !notReadyToRetryHS.contains(userId.substringAfter(':'))
}
} catch (e: Exception) {
Timber.e(e, "## CRYPTO | canRetryKeysDownload() failed")