diff --git a/src/components/app/MessagePanel.vue b/src/components/app/MessagePanel.vue index ef08fac..e0de50a 100644 --- a/src/components/app/MessagePanel.vue +++ b/src/components/app/MessagePanel.vue @@ -192,8 +192,11 @@ export default { clearInterval(this.postTimerID); this.postTimerID = null; }else { - await typingService.post(this.selectedChannelID); - this.postTimer() + if (this.selectedChannelID) + await typingService.post(this.selectedChannelID); + + if (this.postTimerID) + this.postTimer() } }, 2000) diff --git a/src/components/app/ServerTemplate/ChannelTemplate.vue b/src/components/app/ServerTemplate/ChannelTemplate.vue index d144ffa..a5c7d37 100644 --- a/src/components/app/ServerTemplate/ChannelTemplate.vue +++ b/src/components/app/ServerTemplate/ChannelTemplate.vue @@ -1,5 +1,5 @@