From 9457f2c5fc09cfa6eb6642f7c887473ded289cb8 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Thu, 2 Jul 2026 13:26:13 +0300 Subject: [PATCH] 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. --- ElementX/Sources/Services/Search/SearchServiceProxy.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ElementX/Sources/Services/Search/SearchServiceProxy.swift b/ElementX/Sources/Services/Search/SearchServiceProxy.swift index 43f642e96..c04deb18f 100644 --- a/ElementX/Sources/Services/Search/SearchServiceProxy.swift +++ b/ElementX/Sources/Services/Search/SearchServiceProxy.swift @@ -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))) }