mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-21 17:41:25 -08:00
smolest fix :plead::plead::plead:
This commit is contained in:
1 parent
f70d9a99b4
commit
472b822eea
1 file changed
+3
-4
@@ -1071,10 +1071,9 @@ export function useTimelineEventRenderer({
|
||||
|
||||
const { pinned } = getContent.call(mEvent);
|
||||
const prevPinned = getPrevContent.call(mEvent).pinned;
|
||||
const pinsAdded =
|
||||
prevPinned && pinned
|
||||
? pinned.filter((x: string) => !prevPinned.includes(x))
|
||||
: pinned.filter((x: string) => x.length > 0);
|
||||
const pinsAdded = prevPinned
|
||||
? pinned?.filter((x: string) => !prevPinned.includes(x))
|
||||
: pinned?.filter((x: string) => x.length > 0);
|
||||
const pinsRemoved =
|
||||
(prevPinned && pinned && prevPinned.filter((x: string) => !pinned.includes(x))) || [];
|
||||
|
||||
|
||||
Reference in new issue
Block a user