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?,
body: JsonDict
) {
withContext(coroutineDispatchers.main) {
val params = SendStateTask.Params(
roomId = roomId,
stateKey = stateKey,
eventType = eventType,
body = body
)
sendStateTask.execute(params)
}
val params = SendStateTask.Params(
roomId = roomId,
stateKey = stateKey,
eventType = eventType,
body = body
)
sendStateTask.execute(params)
}
override suspend fun updateTopic(topic: String) {