This commit is contained in:
Benoit Marty 2019-05-21 16:33:43 +02:00
parent 52d9adad70
commit bb39db3f42
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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)