mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-09-02 02:16:19 +02:00
refactor(socket.io): deprecate SocketModules.chats.canMessage and .markAllRead with no alternative. deprecate .getRecentChats in favour of api.chats.list
This commit is contained in:
@@ -80,7 +80,7 @@ describe('Messaging Library', () => {
|
||||
meta.configs.chatMessageDelay = chatMessageDelay;
|
||||
});
|
||||
|
||||
describe('.canMessage()', () => {
|
||||
describe('.canMessageUser()', () => {
|
||||
it('should allow messages to be sent to an unrestricted user', (done) => {
|
||||
Messaging.canMessageUser(mocks.users.baz.uid, mocks.users.herp.uid, (err) => {
|
||||
assert.ifError(err);
|
||||
|
||||
Reference in New Issue
Block a user