mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Fix formatting issues
This commit is contained in:
+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