Add sendLocation API to Rust Room (#681)
Will be used by the location sharing feature.
This commit is contained in:
parent
b437360bc5
commit
4fe7bb6809
3 changed files with 34 additions and 0 deletions
|
|
@ -338,4 +338,13 @@ class RustMatrixRoom(
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
override suspend fun sendLocation(
|
||||
body: String,
|
||||
geoUri: String
|
||||
): Result<Unit> = withContext(coroutineDispatchers.io) {
|
||||
runCatching {
|
||||
innerRoom.sendLocation(body, geoUri, genTransactionId())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue