mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-23 17:00:24 +01:00
fix: #13094, update unread chats on reconnect
unread topics and notifications were updated on reconnections, added chats as well convert function to async added awaits
This commit is contained in:
@@ -269,12 +269,9 @@ describe('socket.io', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('should push unread notifications on reconnect', (done) => {
|
||||
it('should push unread notifications/chats on reconnect', async () => {
|
||||
const socketMeta = require('../src/socket.io/meta');
|
||||
socketMeta.reconnected({ uid: 1 }, {}, (err) => {
|
||||
assert.ifError(err);
|
||||
done();
|
||||
});
|
||||
await socketMeta.reconnected({ uid: 1 }, {});
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user