Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

Commit

Permalink
Merge pull request #69 from reTHINK-project/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
luistduarte authored Nov 30, 2017
2 parents 59ea257 + 4f780c2 commit 242df6e
Show file tree
Hide file tree
Showing 23 changed files with 869 additions and 226 deletions.
37 changes: 0 additions & 37 deletions .eslintrc.js

This file was deleted.

5 changes: 5 additions & 0 deletions examples/group-chat-manager/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ function onInvitation(event) {

getSectionTpl().then(() => {
console.log('[GroupChatManagerDemo - On Invitation] - Section Template ready', event);
event.ack(200);
return chatGroupManager.join(event.url)
}).then((chatController) => {
$('.create-room-btn').hide();
Expand Down Expand Up @@ -353,6 +354,10 @@ function prepareChat(chatController, isOwner) {
processMessage(msg);
});

chatController.onInvitationResponse(function(response) {
console.info('[GroupChatManagerDemo ] onInvitationResponse: ', response);
})

chatController.onMessage(function(message) {
console.info('[GroupChatManagerDemo ] new message received: ', message);
processMessage(message);
Expand Down
Loading

0 comments on commit 242df6e

Please sign in to comment.