Using existing common When case for NoticeItem to handle location data

This commit is contained in:
Maxime NATUREL 2022-05-16 10:14:39 +02:00
parent 4a2310954a
commit 2aeee79c63

View file

@ -113,13 +113,13 @@ class TimelineItemFactory @Inject constructor(
EventType.CALL_NEGOTIATE,
EventType.REACTION,
in EventType.POLL_RESPONSE,
in EventType.POLL_END -> noticeItemFactory.create(params)
in EventType.POLL_END,
in EventType.BEACON_LOCATION_DATA -> noticeItemFactory.create(params)
// Calls
EventType.CALL_INVITE,
EventType.CALL_HANGUP,
EventType.CALL_REJECT,
EventType.CALL_ANSWER -> callItemFactory.create(params)
in EventType.BEACON_LOCATION_DATA -> noticeItemFactory.create(params)
// Crypto
EventType.ENCRYPTED -> {
if (event.root.isRedacted()) {