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:
parent
1d0b493869
commit
105bab1758
10 changed files with 87 additions and 44 deletions
|
|
@ -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,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue