Fixes routes for AppDefinition events.
This commit is contained in:
+5
-1
@@ -86,7 +86,11 @@ fun routeForInner(
|
|||||||
): Route? =
|
): Route? =
|
||||||
when (noteEvent) {
|
when (noteEvent) {
|
||||||
is AppDefinitionEvent -> {
|
is AppDefinitionEvent -> {
|
||||||
Route.ContentDiscovery(noteEvent.id)
|
if (noteEvent.includeKind(5300)) {
|
||||||
|
Route.ContentDiscovery(noteEvent.id)
|
||||||
|
} else {
|
||||||
|
Route.Note(noteEvent.id)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
is IsInPublicChatChannel -> {
|
is IsInPublicChatChannel -> {
|
||||||
|
|||||||
Reference in New Issue
Block a user