mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 16:24:11 +00:00
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:
@@ -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)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user