Add KDoc to InCall.callJoinedTs and clearUserStatus

This commit is contained in:
ganfra
2026-06-12 14:49:57 +02:00
parent bad32cbbda
commit 5697c9664f
2 changed files with 5 additions and 1 deletions
@@ -86,6 +86,7 @@ interface MatrixClient {
suspend fun uploadAvatar(mimeType: String, data: ByteArray): Result<Unit>
suspend fun removeAvatar(): Result<Unit>
suspend fun setUserStatus(status: UserStatus): Result<Unit>
/** Clears both m.status and m.call profile fields (maps to DELETE on the profile endpoint per MSC4426). */
suspend fun clearUserStatus(): Result<Unit>
suspend fun joinRoom(roomId: RoomId): Result<RoomInfo?>
suspend fun joinRoomByIdOrAlias(roomIdOrAlias: RoomIdOrAlias, serverNames: List<String>): Result<RoomInfo?>
@@ -17,5 +17,8 @@ sealed interface DisplayedStatus : Parcelable {
/** Status set automatically when the user is in a call via m.call. */
@Parcelize
data class InCall(val callJoinedTs: Long) : DisplayedStatus
data class InCall(
/** Unix timestamp in seconds when the call was joined (from m.call.call_joined_ts). */
val callJoinedTs: Long,
) : DisplayedStatus
}