We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 922ce8d commit e0932eeCopy full SHA for e0932ee
packages/host/app/lib/matrix-handlers/timeline.ts
@@ -24,11 +24,11 @@ export function onTimeline(context: Context) {
24
}
25
26
export function onUpdateEventStatus(context: Context) {
27
- return (e: MatrixEvent, _room: Room, oldEventId?: string) => {
28
- if (typeof oldEventId !== 'string' || !e.status) {
+ return (e: MatrixEvent, _room: Room, maybeOldEventId?: unknown) => {
+ if (typeof maybeOldEventId !== 'string' || !e.status) {
29
return;
30
31
- context.timelineQueue.push({ event: e, oldEventId });
+ context.timelineQueue.push({ event: e, oldEventId: maybeOldEventId });
32
debouncedTimelineDrain(context);
33
};
34
0 commit comments