parsing redacted events
This commit is contained in:
parent
7b2f9532b1
commit
5a67275b89
|
@ -82,7 +82,6 @@ internal sealed class ApiTimelineEvent {
|
|||
)
|
||||
}
|
||||
|
||||
|
||||
@Serializable
|
||||
@SerialName("m.room.member")
|
||||
internal data class RoomMember(
|
||||
|
@ -109,6 +108,15 @@ internal sealed class ApiTimelineEvent {
|
|||
}
|
||||
}
|
||||
|
||||
@Serializable
|
||||
@SerialName("m.room.redaction")
|
||||
internal data class RoomRedcation(
|
||||
@SerialName("event_id") val id: EventId,
|
||||
@SerialName("redacts") val redactedId: EventId,
|
||||
@SerialName("origin_server_ts") val utcTimestamp: Long,
|
||||
@SerialName("sender") val senderId: UserId,
|
||||
) : ApiTimelineEvent()
|
||||
|
||||
@Serializable
|
||||
internal data class DecryptionStatus(
|
||||
@SerialName("is_verified") val isVerified: Boolean
|
||||
|
|
|
@ -32,6 +32,7 @@ internal class TimelineEventsProcessor(
|
|||
is ApiTimelineEvent.TimelineMessage -> event.toRoomEvent(roomToProcess.userCredentials, roomToProcess.roomId) { eventId ->
|
||||
eventLookupUseCase.lookup(eventId, decryptedTimeline, decryptedPreviousEvents)
|
||||
}
|
||||
is ApiTimelineEvent.RoomRedcation -> null
|
||||
is ApiTimelineEvent.Encryption -> null
|
||||
is ApiTimelineEvent.RoomAvatar -> null
|
||||
is ApiTimelineEvent.RoomCreate -> null
|
||||
|
|
Loading…
Reference in New Issue