Add threadInfo field to message like timeline events (#5930)

* Add `threadInfo` field to message like timeline events:
- Polls
- Stickers
- UTDs

* Add missing cases for `EventTimeline.threadInfo()`
This commit is contained in:
Jorge Martin Espinosa 2025-12-19 10:43:40 +01:00 committed by GitHub
parent 1d0b493869
commit 105bab1758
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 87 additions and 44 deletions

View file

@ -123,11 +123,13 @@ fun aStickerContent(
info: ImageInfo,
mediaSource: MediaSource,
body: String? = null,
threadInfo: EventThreadInfo? = null,
) = StickerContent(
filename = filename,
body = body,
info = info,
source = mediaSource,
threadInfo = threadInfo,
)
fun aTimelineItemDebugInfo(
@ -148,6 +150,7 @@ fun aPollContent(
votes: ImmutableMap<String, ImmutableList<UserId>> = persistentMapOf(),
endTime: ULong? = null,
isEdited: Boolean = false,
threadInfo: EventThreadInfo? = null,
) = PollContent(
question = question,
kind = kind,
@ -156,4 +159,5 @@ fun aPollContent(
votes = votes,
endTime = endTime,
isEdited = isEdited,
threadInfo = threadInfo,
)