diff --git a/src/js/components/events/ReactionsList.tsx b/src/js/components/events/ReactionsList.tsx index a82459a0..e8fc60b8 100644 --- a/src/js/components/events/ReactionsList.tsx +++ b/src/js/components/events/ReactionsList.tsx @@ -91,7 +91,7 @@ const ReactionsList = ({ event }) => {

{modalTitle}

-
+
{modalReactions.map((data) => ( ))} diff --git a/src/js/hooks/useSubscribe.ts b/src/js/hooks/useSubscribe.ts index d99b13c0..62b5665f 100644 --- a/src/js/hooks/useSubscribe.ts +++ b/src/js/hooks/useSubscribe.ts @@ -48,7 +48,7 @@ const useSubscribe = (ops: { // Subscribe with the new filter and store the returned unsubscribe function const unsubscribe = PubSub.subscribe(newFilter, handleEvent, false, false); setLoadMoreUnsubscribe(unsubscribe); - }, [filter, loadMoreUnsubscribe, sortedEvents]); // Dependencies for the useCallback + }, [ops, sortedEvents]); // Dependencies for the useCallback return { events, loadMore }; }; diff --git a/src/js/views/Search.tsx b/src/js/views/Search.tsx index c6e225b4..b011dbed 100644 --- a/src/js/views/Search.tsx +++ b/src/js/views/Search.tsx @@ -83,10 +83,10 @@ const Search = (props: any) => { route('/' + key); }} /> -
+
-
+
diff --git a/src/js/views/feeds/Global.tsx b/src/js/views/feeds/Global.tsx index b3291bee..0e3c37af 100644 --- a/src/js/views/feeds/Global.tsx +++ b/src/js/views/feeds/Global.tsx @@ -1,6 +1,7 @@ import FeedComponent from '@/components/feed/Feed'; import OnboardingNotification from '@/components/OnboardingNotification'; import PublicMessageForm from '@/components/PublicMessageForm'; +import Events from '@/nostr/Events'; import { translate as t } from '@/translations/Translation.mjs'; import View from '../View'; @@ -25,7 +26,19 @@ class Feed extends View {
- + !Events.getEventReplyingTo(event), + }, + { + name: t('posts_and_replies'), + filter: { kinds: [1], authors: this.state.followedUsers }, + }, + ]} + />
); diff --git a/src/js/views/feeds/Home.tsx b/src/js/views/feeds/Home.tsx index b31a1ac6..23cf1239 100644 --- a/src/js/views/feeds/Home.tsx +++ b/src/js/views/feeds/Home.tsx @@ -2,6 +2,7 @@ import FeedComponent from '@/components/feed/Feed'; import Show from '@/components/helpers/Show'; import OnboardingNotification from '@/components/OnboardingNotification'; import PublicMessageForm from '@/components/PublicMessageForm'; +import Events from '@/nostr/Events'; import Key from '@/nostr/Key'; import { Unsubscribe } from '@/nostr/PubSub'; import { ID, PUB } from '@/nostr/UserIds'; @@ -49,7 +50,12 @@ class Feed extends View { !Events.getEventReplyingTo(event), + }, + { + name: t('posts_and_replies'), filter: { kinds: [1], authors: this.state.followedUsers, limit: 100 }, }, ]}