WIP
This commit is contained in:
parent
52d9adad70
commit
bb39db3f42
|
@ -54,6 +54,7 @@ import im.vector.matrix.android.internal.crypto.store.IMXCryptoStore
|
|||
import im.vector.matrix.android.internal.crypto.tasks.*
|
||||
import im.vector.matrix.android.internal.crypto.verification.DefaultSasVerificationService
|
||||
import im.vector.matrix.android.internal.di.MoshiProvider
|
||||
import im.vector.matrix.android.internal.session.room.members.RoomMembers
|
||||
import im.vector.matrix.android.internal.session.sync.model.SyncResponse
|
||||
import im.vector.matrix.android.internal.task.TaskExecutor
|
||||
import im.vector.matrix.android.internal.task.configureWith
|
||||
|
|
|
@ -41,6 +41,10 @@ internal class RoomEncryptionEnabler(monarchy: Monarchy) : RealmLiveEntityObserv
|
|||
|
||||
val eventIds = inserted.mapNotNull { it.asDomain().eventId }
|
||||
|
||||
if (eventIds.isEmpty()) {
|
||||
return
|
||||
}
|
||||
|
||||
val workParam = EnableEncryptionWorker.Params(eventIds)
|
||||
val workData = WorkerParamsFactory.toData(workParam)
|
||||
|
||||
|
|
Loading…
Reference in New Issue