Remove coroutine context change for sendStateEvent
Signed-off-by: aqulu <dev@aqu.lu>
This commit is contained in:
parent
c889deaab1
commit
19d421df84
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue