From 1b3e1923568cec1eb2c67494e18e1094cea1a1d8 Mon Sep 17 00:00:00 2001 From: erroneousboat Date: Sat, 5 Oct 2019 10:54:01 +0200 Subject: [PATCH] Fix received message handling and chat/thread focus Reference #91 --- handlers/event.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/event.go b/handlers/event.go index 0434e4c..c0dc125 100644 --- a/handlers/event.go +++ b/handlers/event.go @@ -136,7 +136,7 @@ func messageHandler(ctx *context.AppContext) { // handle as such if ev.ThreadTimestamp != "" { ctx.View.Chat.AddReply(ev.ThreadTimestamp, msg) - } else { + } else if ev.ThreadTimestamp == "" && ctx.Focus == context.ChatFocus { ctx.View.Chat.AddMessage(msg) }