mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 00:46:16 -04:00
PadMessageHandler: Modernize userLeave
hook context properties
This commit is contained in:
parent
a6d060d67b
commit
9aaf781548
3 changed files with 15 additions and 13 deletions
|
@ -150,7 +150,12 @@ exports.handleDisconnect = async (socket) => {
|
|||
},
|
||||
},
|
||||
});
|
||||
await hooks.aCallAll('userLeave', session);
|
||||
await hooks.aCallAll('userLeave', {
|
||||
...session, // For backwards compatibility.
|
||||
authorId: session.author,
|
||||
readOnly: session.readonly,
|
||||
socket,
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue