Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions desktop/src/app/routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ import { useIdentityQuery } from "@/shared/api/hooks";

type HomeRouteSearch = {
item?: string;
profile?: string;
profileTab?: string;
profileView?: string;
};

function validateHomeSearch(search: Record<string, unknown>): HomeRouteSearch {
Expand All @@ -20,6 +23,18 @@ function validateHomeSearch(search: Record<string, unknown>): HomeRouteSearch {
typeof search.item === "string" && search.item.length > 0
? search.item
: undefined,
profile:
typeof search.profile === "string" && search.profile.length > 0
? search.profile
: undefined,
profileTab:
typeof search.profileTab === "string" && search.profileTab.length > 0
? search.profileTab
: undefined,
profileView:
typeof search.profileView === "string" && search.profileView.length > 0
? search.profileView
: undefined,
};
}

Expand Down
1 change: 1 addition & 0 deletions desktop/src/features/home/lib/inbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export type InboxReply = {
reactions?: TimelineReaction[];
rootId?: string | null;
tags?: string[][];
timeLabel?: string;
};

export type InboxContextMessage = InboxReply & {
Expand Down
Loading
Loading