mirror of
https://github.com/vector-im/element-call.git
synced 2026-07-18 18:59:23 +00:00
invert
This commit is contained in:
@@ -47,13 +47,12 @@ export default function useReactionsReader(rtcSession: MatrixRTCSession): {
|
|||||||
);
|
);
|
||||||
|
|
||||||
reactionsSubject$.current
|
reactionsSubject$.current
|
||||||
.pipe(delay(REACTION_ACTIVE_TIME_MS + 50))
|
.pipe(delay(REACTION_ACTIVE_TIME_MS))
|
||||||
.subscribe((reactions) => {
|
.subscribe((reactions) => {
|
||||||
const date = new Date();
|
const date = new Date();
|
||||||
const nextEntries = Object.fromEntries(
|
const nextEntries = Object.fromEntries(
|
||||||
Object.entries(reactions).filter(([_, hr]) => hr.expireAfter < date),
|
Object.entries(reactions).filter(([_, hr]) => hr.expireAfter > date),
|
||||||
);
|
);
|
||||||
console.log("Filtering", nextEntries);
|
|
||||||
if (Object.keys(reactions).length === Object.keys(nextEntries).length) {
|
if (Object.keys(reactions).length === Object.keys(nextEntries).length) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user