Skip to content

Commit

Permalink
Added in room and contact objects to invite for candy:core:chat:invite.
Browse files Browse the repository at this point in the history
  • Loading branch information
Melissa Noelle committed Jan 7, 2015
1 parent 85f6e2c commit 5c7205e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/core/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -482,9 +482,19 @@ Candy.Core.Event = (function(self, Strophe, $) {
}

if(directInvite.length > 0) {
fromUser = Candy.Core.getRoster().get(msg.attr('from'));
room = Candy.Core.getRoom(directInvite.attr('jid'));

/*
* (Candy.Core.Chatroom) room -
* (Candy.Core.Contact) from -
* (String) reason -
* (String) password -
* (String) continuedThread -
*/
invite = {
roomJid: directInvite.attr('jid'),
from: msg.attr('from'),
room: room,
from: fromUser,
reason: directInvite.attr('reason'),
password: directInvite.attr('password'),
continuedThread: directInvite.attr('thread')
Expand Down

0 comments on commit 5c7205e

Please sign in to comment.