Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions assets/js/yiiSimpleChat.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@
key: data['keys'][index],
index: index,
user: options.user,
sender: data['models'][index]['sender_id'] == options.user.id ? options.user : options.contact,
sender: data['models'][index]['senderId'] == options.user.id ? options.user : options.contact,
settings: options.settings
};
// append the message
Expand Down Expand Up @@ -393,14 +393,14 @@
});

// load new messages every 10 seconds
setInterval(function () {
self.messenger.yiiSimpleChatMessages('load', 'new');
}, 10000);
// setInterval(function () {
// self.messenger.yiiSimpleChatMessages('load', 'new');
// }, 10000);

// load new conversations every 15 seconds
setInterval(function () {
self.conversations.yiiSimpleChatConversations('load', 'new');
}, 15000);
// setInterval(function () {
// self.conversations.yiiSimpleChatConversations('load', 'new');
// }, 15000);
});
}
};
Expand Down