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:
Julian Lam
2023-11-13 15:35:46 -05:00
parent eebea4df2e
commit a4133500fe
8 changed files with 65 additions and 37 deletions

View File

@@ -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);