Skip to content

Commit

Permalink
Send user ID for synthesized conversationUpdate event
Browse files Browse the repository at this point in the history
  • Loading branch information
compulim committed Jan 18, 2019
1 parent d7b6471 commit b2dad24
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ export default function* () {
yield whileConnected(sendConversationUpdateOnConnect);
}

function* sendConversationUpdateOnConnect() {
function* sendConversationUpdateOnConnect(_, userID) {
yield put(postActivity({
type: 'conversationUpdate',
membersAdded: []
membersAdded: [{
id: userID
}]
}, 'code'));
}

0 comments on commit b2dad24

Please sign in to comment.