Skip to content

Instantly share code, notes, and snippets.

@riccoski
Last active April 1, 2017 14:12
Show Gist options
  • Save riccoski/3c2bbef4560af99d7f56f8ab3fb1b101 to your computer and use it in GitHub Desktop.
Save riccoski/3c2bbef4560af99d7f56f8ab3fb1b101 to your computer and use it in GitHub Desktop.
constructor() {
this.conversationHandler = reaction(() => InboxStore.conversation,
conversation => this.initMessageForm(conversation))
}
initMessageForm(conversation) {
if ( isConverstion(conversation) ) {
const messageData = {
author: {
id: UserStore.user.id
},
conversation: InboxStore.view.id
}
this.MessageModel = new Message(InboxStore, messageData)
}
}
@riccoski
Copy link
Author

riccoski commented Apr 1, 2017

line 12: conversation: conversation.id

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment