parsing redacted events

This commit is contained in:
Adam Brown 2022-09-29 17:58:45 +01:00
parent 7b2f9532b1
commit 5a67275b89
2 changed files with 10 additions and 1 deletions

View File

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

View File

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