Format location event for debugging purpose

This commit is contained in:
Maxime NATUREL 2022-05-02 15:00:17 +02:00
parent 3a36762632
commit d341611e54
2 changed files with 9 additions and 7 deletions

View File

@ -119,6 +119,7 @@ class TimelineItemFactory @Inject constructor(
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()) {

View File

@ -107,7 +107,8 @@ class NoticeEventFormatter @Inject constructor(
EventType.REDACTION,
EventType.STICKER,
in EventType.POLL_RESPONSE,
in EventType.POLL_END -> formatDebug(timelineEvent.root)
in EventType.POLL_END,
in EventType.BEACON_LOCATION_DATA -> formatDebug(timelineEvent.root)
else -> {
Timber.v("Type $type not handled by this formatter")
null