Remove coroutine context change for sendStateEvent

Signed-off-by: aqulu <dev@aqu.lu>
This commit is contained in:
aqulu 2020-12-08 22:06:21 +09:00
parent c889deaab1
commit 19d421df84
1 changed files with 7 additions and 10 deletions

View File

@ -72,16 +72,13 @@ internal class DefaultStateService @AssistedInject constructor(@Assisted private
stateKey: String?, stateKey: String?,
body: JsonDict body: JsonDict
) { ) {
withContext(coroutineDispatchers.main) { val params = SendStateTask.Params(
val params = SendStateTask.Params( roomId = roomId,
roomId = roomId, stateKey = stateKey,
stateKey = stateKey, eventType = eventType,
eventType = eventType, body = body
body = body )
) sendStateTask.execute(params)
sendStateTask.execute(params)
}
} }
override suspend fun updateTopic(topic: String) { override suspend fun updateTopic(topic: String) {