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:
Jorge Martin Espinosa 2023-07-26 16:22:09 +02:00 committed by GitHub
parent 1806ebaa02
commit 05f7037939
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 99 additions and 55 deletions

View file

@ -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

View file

@ -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?,