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 24, 2019
1 parent fbdf5d3 commit 7a279a2
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 7a279a2

Please sign in to comment.