fix: Various fixes for collaborative editing beta (#2561)
* fix: Remove Saving… message when collab enabled * chore: Add tracing extension to collaboration server * fix: Incorrect debounce behavior due to missing timestamps on events, fixes abundence of notifications when editing in realtime collab mode * fix: Reload document prompt when collab editing
This commit is contained in:
@@ -45,13 +45,21 @@ Event.beforeCreate((event) => {
|
||||
});
|
||||
|
||||
Event.afterCreate((event) => {
|
||||
globalEventQueue.add(event, { removeOnComplete: true });
|
||||
globalEventQueue.add(event);
|
||||
});
|
||||
|
||||
// add can be used to send events into the event system without recording them
|
||||
// in the database / audit trail
|
||||
// in the database or audit trail
|
||||
Event.add = (event) => {
|
||||
globalEventQueue.add(Event.build(event), { removeOnComplete: true });
|
||||
const now = new Date();
|
||||
|
||||
globalEventQueue.add(
|
||||
Event.build({
|
||||
createdAt: now,
|
||||
updatedAt: now,
|
||||
...event,
|
||||
})
|
||||
);
|
||||
};
|
||||
|
||||
Event.ACTIVITY_EVENTS = [
|
||||
|
||||
Reference in New Issue
Block a user