We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 184275b commit 8b4ebffCopy full SHA for 8b4ebff
1 file changed
angular-chat.js
@@ -103,23 +103,17 @@ angular.module('chat').service('ChatCore',
103
// Subscribe to new messages
104
self.subscribe = function(fn) {
105
106
- console.log('i am ', self.user().id)
107
-
108
self.roomGlobal = self.rltm.join('global');
109
self.roomPrivate = self.rltm.join(self.user().id);
110
111
self.roomGlobal.on('message', function(uuid, data) {
112
113
- console.log('public messages', data)
114
115
fn(data, false);
116
$rootScope.$apply();
117
});
118
119
self.roomPrivate.on('message', function(uuid, data) {
120
121
- console.log('private messages', data)
122
123
fn(data, true);
124
125
0 commit comments