mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 08:15:02 +00:00
Fix formatting issues
This commit is contained in:
+2
-4
@@ -30,8 +30,7 @@ interface ActiveLiveLocationShareManager {
|
||||
* Starts live location sharing in the given room.
|
||||
* Calls room.startLiveLocationShare() on the SDK, registers the share,
|
||||
* and starts the foreground GPS service if not already running.
|
||||
*/
|
||||
/**
|
||||
*
|
||||
* @param roomId the room to start sharing the location in.
|
||||
* @param duration how long the share should last before it expires on its own.
|
||||
*/
|
||||
@@ -41,8 +40,7 @@ interface ActiveLiveLocationShareManager {
|
||||
* Stops live location sharing in the given room.
|
||||
* Calls room.stopLiveLocationShare() on the SDK, removes the share,
|
||||
* and stops the foreground service if no shares remain.
|
||||
*/
|
||||
/**
|
||||
*
|
||||
* @param roomId the room to stop sharing the location in.
|
||||
*/
|
||||
suspend fun stopShare(roomId: RoomId): Result<Unit>
|
||||
|
||||
+1
@@ -30,6 +30,7 @@ interface PollContentStateFactory {
|
||||
content = content,
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* @param eventId the poll start event, or `null` while the poll is still a local echo.
|
||||
* @param isEditable whether the current user may still edit the poll.
|
||||
|
||||
+1
@@ -31,6 +31,7 @@ interface TimelineEventFormatter {
|
||||
senderDisambiguatedDisplayName = event.senderProfile.getDisambiguatedDisplayName(event.sender),
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* @param content the event content to describe.
|
||||
* @param isOutgoing whether the event was sent by the current user, which selects the first-person wording.
|
||||
|
||||
+1
@@ -135,6 +135,7 @@ interface MatrixClient : UrlContentFetcher {
|
||||
|
||||
/** Scans media content before it is displayed, or `null` when no content scanner is configured for this session. */
|
||||
val contentScanner: ContentScanner?
|
||||
|
||||
/**
|
||||
* Returns the room with the given id if the user has joined it, along with its live [Timeline].
|
||||
* A new instance is created on each call and the caller owns it, so it must be closed once no longer needed.
|
||||
|
||||
-1
@@ -49,6 +49,5 @@ interface PermissionsStore {
|
||||
suspend fun resetPermission(permission: String)
|
||||
|
||||
/** Forgets every recorded permission; exposed for debugging from the developer options. */
|
||||
// To debug
|
||||
suspend fun resetStore()
|
||||
}
|
||||
|
||||
+1
-2
@@ -32,8 +32,7 @@ interface SessionStore {
|
||||
/**
|
||||
* Add a new session. If other sessions exist, the new one will be set as the latest used one, and
|
||||
* the added session position will be set to a value higher than the other session positions.
|
||||
*/
|
||||
/**
|
||||
*
|
||||
* @param sessionData the session to store, including its tokens.
|
||||
*/
|
||||
suspend fun addSession(sessionData: SessionData)
|
||||
|
||||
+1
-1
@@ -17,11 +17,11 @@ import io.element.android.libraries.matrix.api.user.MatrixUser
|
||||
interface UserListDataSource {
|
||||
/**
|
||||
* Searches the user directory, returning an empty list rather than failing when the request does not succeed.
|
||||
* TODO should probably have a flow
|
||||
*
|
||||
* @param query the text to look for in user ids and display names.
|
||||
* @param count the maximum number of results to return.
|
||||
*/
|
||||
// TODO should probably have a flow
|
||||
suspend fun search(query: String, count: Long): List<MatrixUser>
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user