This commit is contained in:
Barış Soner Uşaklı
2015-02-17 15:13:58 -05:00
parent 0611b7e1ea
commit 276cd51836
6 changed files with 48 additions and 61 deletions

View File

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