Index polls, stickers and more event types in search results

The SDK now surfaces polls, stickers, redactions and live location shares
alongside plain messages. Map them to their preview content instead of
dropping them as unsupported events.
This commit is contained in:
Stefan Ceriu
2026-07-02 13:26:13 +03:00
parent 4fbfc87551
commit 9457f2c5fc
@@ -119,6 +119,14 @@ class SearchServiceProxy: SearchServiceProxyProtocol {
content = .message(timelineItemFactory.buildMessageTimelineItemContent(messageType: msg.msgType,
senderID: result.sender,
senderDisplayName: sender.displayName))
case .poll(let question, _, _, _, _, _, _):
content = .poll(question: question)
case .sticker(let body, _, _):
content = .message(.text(.init(body: body)))
case .redacted:
content = .redacted
case .liveLocation:
content = .liveLocation
default:
content = .message(.text(.init(body: L10n.commonUnsupportedEvent)))
}