Add sendLocation API to Rust Room (#681)

Will be used by the location sharing feature.
This commit is contained in:
Marco Romano 2023-06-27 09:12:17 +02:00 committed by GitHub
parent b437360bc5
commit 4fe7bb6809
3 changed files with 34 additions and 0 deletions

View file

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