diff --git a/mods/msg_area_post_fse.js b/mods/msg_area_post_fse.js index 19a3edb9..aecac3f6 100644 --- a/mods/msg_area_post_fse.js +++ b/mods/msg_area_post_fse.js @@ -22,6 +22,14 @@ function AreaPostFSEModule(options) { // we're posting, so always start with 'edit' mode this.editorMode = 'edit'; + // + // If messageAreaId is passed in extraArgs, use it. Otherwise, look + // to the client user for current area ID + // + if(_.isNumber(client.user.properties.message_area_id)) { + this.messageAreaId = client.user.properties.message_area_id; + } + this.menuMethods.editModeMenuSave = function(formData, extraArgs) { var msg = self.getMessage(); console.log(msg);