We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5cff2f7 commit 74a6a56Copy full SHA for 74a6a56
1 file changed
angular-chat.js
@@ -66,6 +66,9 @@ angular.module('chat').service( 'Messages', [ 'ChatCore', function(ChatCore) {
66
Messages.receive = function(fn) {
67
function receiver(response) {
68
response.data.m.forEach(function(msg){
69
+ // Ignore messages without User Data
70
+ // TODO
71
+ if (!(msg.d && msg.u && msg.u.id)) return;
72
fn({
73
data : msg.d
74
, id : msg.p.t
0 commit comments