Prepare update to Rust SDK 0.1.36 (#966)
* Update to Rust SDK 0.1.36 * Cancel fetching members when the we exit the room
This commit is contained in:
parent
1806ebaa02
commit
05f7037939
16 changed files with 99 additions and 55 deletions
|
|
@ -23,7 +23,6 @@ import io.element.android.libraries.matrix.api.room.RoomMembershipState
|
|||
import io.element.android.libraries.matrix.api.timeline.item.event.MessageType
|
||||
|
||||
data class NotificationData(
|
||||
val senderId: UserId,
|
||||
val eventId: EventId,
|
||||
val roomId: RoomId,
|
||||
val senderAvatarUrl: String?,
|
||||
|
|
@ -33,14 +32,10 @@ data class NotificationData(
|
|||
val isDirect: Boolean,
|
||||
val isEncrypted: Boolean,
|
||||
val isNoisy: Boolean,
|
||||
val event: NotificationEvent,
|
||||
)
|
||||
|
||||
data class NotificationEvent(
|
||||
val timestamp: Long,
|
||||
val content: NotificationContent,
|
||||
// For images for instance
|
||||
val contentUrl: String?
|
||||
val contentUrl: String?,
|
||||
)
|
||||
|
||||
sealed interface NotificationContent {
|
||||
|
|
@ -61,6 +56,7 @@ sealed interface NotificationContent {
|
|||
) : MessageLike
|
||||
object RoomEncrypted : MessageLike
|
||||
data class RoomMessage(
|
||||
val senderId: UserId,
|
||||
val messageType: MessageType
|
||||
) : MessageLike
|
||||
object RoomRedaction : MessageLike
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ sealed interface InReplyTo {
|
|||
/** The event details are available. */
|
||||
data class Ready(
|
||||
val eventId: EventId,
|
||||
val content: MessageContent,
|
||||
val content: EventContent,
|
||||
val senderId: UserId,
|
||||
val senderDisplayName: String?,
|
||||
val senderAvatarUrl: String?,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue