feat: always show zaps
This commit is contained in:
parent
ac41f8c2f4
commit
a39d015917
@ -32,8 +32,8 @@ export default function useThreadFeed(id: u256) {
|
||||
const subRelated = new Subscriptions();
|
||||
subRelated.Kinds = new Set(
|
||||
pref.enableReactions
|
||||
? [EventKind.Reaction, EventKind.TextNote, EventKind.Deletion, EventKind.Repost, EventKind.ZapReceipt]
|
||||
: [EventKind.TextNote]
|
||||
? [EventKind.Reaction, EventKind.TextNote, EventKind.Repost, EventKind.ZapReceipt]
|
||||
: [EventKind.TextNote, EventKind.ZapReceipt]
|
||||
);
|
||||
subRelated.ETags = thisSub.Ids;
|
||||
thisSub.AddSubscription(subRelated);
|
||||
|
@ -115,10 +115,12 @@ export default function useTimelineFeed(subject: TimelineSubject, options: Timel
|
||||
|
||||
const subNext = useMemo(() => {
|
||||
let sub: Subscriptions | undefined;
|
||||
if (trackingEvents.length > 0 && pref.enableReactions) {
|
||||
if (trackingEvents.length > 0) {
|
||||
sub = new Subscriptions();
|
||||
sub.Id = `timeline-related:${subject.type}`;
|
||||
sub.Kinds = new Set([EventKind.Reaction, EventKind.Repost, EventKind.Deletion, EventKind.ZapReceipt]);
|
||||
sub.Kinds = new Set(
|
||||
pref.enableReactions ? [EventKind.Reaction, EventKind.Repost, EventKind.ZapReceipt] : [EventKind.ZapReceipt]
|
||||
);
|
||||
sub.ETags = new Set(trackingEvents);
|
||||
}
|
||||
return sub ?? null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user