mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 23:40:38 +01:00
closes #2467
This commit is contained in:
@@ -12,7 +12,6 @@ var nconf = require('nconf'),
|
||||
meta = require('../meta'),
|
||||
Messaging = require('../messaging'),
|
||||
user = require('../user'),
|
||||
notifications = require('../notifications'),
|
||||
plugins = require('../plugins'),
|
||||
utils = require('../../public/src/utils'),
|
||||
privileges = require('../privileges'),
|
||||
@@ -23,7 +22,6 @@ var nconf = require('nconf'),
|
||||
SocketModules = {
|
||||
composer: {},
|
||||
chats: {},
|
||||
notifications: {},
|
||||
sounds: {},
|
||||
settings: {}
|
||||
};
|
||||
@@ -246,14 +244,6 @@ SocketModules.chats.getRecentChats = function(socket, data, callback) {
|
||||
Messaging.getRecentChats(socket.uid, start, end, callback);
|
||||
};
|
||||
|
||||
/* Notifications */
|
||||
SocketModules.notifications.markRead = function(socket, nid) {
|
||||
notifications.markRead(nid, socket.uid);
|
||||
};
|
||||
|
||||
SocketModules.notifications.markAllRead = function(socket, data, callback) {
|
||||
notifications.markAllRead(socket.uid, callback);
|
||||
};
|
||||
|
||||
/* Sounds */
|
||||
SocketModules.sounds.getSounds = function(socket, data, callback) {
|
||||
|
||||
Reference in New Issue
Block a user