diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/home/dal/HomeLiveFilter.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/home/dal/HomeLiveFilter.kt index eb3be9e65..ef219b50f 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/home/dal/HomeLiveFilter.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/home/dal/HomeLiveFilter.kt @@ -156,6 +156,16 @@ class HomeLiveFilter( ): Boolean { val createdAt = note.createdAt() ?: return false val noteEvent = note.event + + if (noteEvent is LiveActivitiesChatMessageEvent) { + val stream = noteEvent.activityAddress() + if (stream == null) return false + val streamChannel = LocalCache.getLiveActivityChannelIfExists(stream) + if (streamChannel == null) return false + + if (streamChannel.info?.status() != StatusTag.STATUS.LIVE) return false + } + return (noteEvent is EphemeralChatEvent || noteEvent is LiveActivitiesChatMessageEvent) && createdAt > timeLimit && filterParams.match(noteEvent, note.relays)