Skip to content

Commit

Permalink
Rearrange chat.vuex to group related functions
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexHalb committed Jul 27, 2020
1 parent f0550f0 commit 143ee61
Show file tree
Hide file tree
Showing 2 changed files with 520 additions and 494 deletions.
4 changes: 2 additions & 2 deletions src/app/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@
};
postMessage(rawMessage: string, channel: string) {
if (!channel.startsWith('#')) { // If it's a PRIVMSG
this.$vxm.chat.postToQuery({ message: rawMessage, channel });
if (!channel.startsWith('#')) { // If it's a private message (channel not prefixed with #)
this.$vxm.chat.privateMessage({ message: rawMessage, channel });
} else { // Otherwise
this.$vxm.chat.sendMessage({ rawMessage, channel });
}
Expand Down
Loading

0 comments on commit 143ee61

Please sign in to comment.