Explorar el Código

refactor(cmd): remove IsValid check

ayn2op hace 9 meses
padre
commit
7164b27214
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      cmd/state.go

+ 1 - 2
cmd/state.go

@@ -159,8 +159,7 @@ func onReady(r *gateway.ReadyEvent) {
 }
 
 func onMessageCreate(msg *gateway.MessageCreateEvent) {
-	if app.guildsTree.selectedChannelID.IsValid() &&
-		app.guildsTree.selectedChannelID == msg.ChannelID {
+	if app.guildsTree.selectedChannelID == msg.ChannelID {
 		app.messagesList.createMsg(msg.Message)
 		app.Draw()
 	}