Send My Location (#770)

- https://github.com/vector-im/element-meta/issues/1682
This commit is contained in:
Marco Romano 2023-07-19 11:58:13 +02:00 committed by GitHub
parent 68c2aa8822
commit 3c45a5ece4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
55 changed files with 1351 additions and 767 deletions

View file

@ -97,8 +97,8 @@ class FakeMatrixRoom(
var reportedContentCount: Int = 0
private set
var sendLocationCount: Int = 0
private set
private val _sentLocations = mutableListOf<SendLocationInvocation>()
val sentLocations: List<SendLocationInvocation> = _sentLocations
var invitedUserId: UserId? = null
@ -279,7 +279,7 @@ class FakeMatrixRoom(
zoomLevel: Int?,
assetType: AssetType?,
): Result<Unit> = simulateLongTask {
sendLocationCount++
_sentLocations.add(SendLocationInvocation(body, geoUri, description, zoomLevel, assetType))
return sendLocationResult
}
@ -381,3 +381,11 @@ class FakeMatrixRoom(
progressCallbackValues = values
}
}
data class SendLocationInvocation(
val body: String,
val geoUri: String,
val description: String?,
val zoomLevel: Int?,
val assetType: AssetType?,
)