Fix / crash when reporting bug with no active session

This commit is contained in:
Valere 2019-07-01 20:47:21 +02:00
parent f4b124d29f
commit f9880283e9

View File

@ -203,7 +203,7 @@ class BugReporter @Inject constructor(private val activeSessionHolder: ActiveSes
var userId = "undefined"
var olmVersion = "undefined"

activeSessionHolder.getActiveSession().let { session ->
activeSessionHolder.getSafeActiveSession().let { session ->
userId = session.sessionParams.credentials.userId
deviceId = session.sessionParams.credentials.deviceId ?: "undefined"
olmVersion = session.getCryptoVersion(context, true)