Fix received message handling and chat/thread focus

Reference #91
This commit is contained in:
erroneousboat 2019-10-05 10:54:01 +02:00
parent d36cd2d125
commit 1b3e192356

View File

@ -136,7 +136,7 @@ func messageHandler(ctx *context.AppContext) {
// handle as such // handle as such
if ev.ThreadTimestamp != "" { if ev.ThreadTimestamp != "" {
ctx.View.Chat.AddReply(ev.ThreadTimestamp, msg) ctx.View.Chat.AddReply(ev.ThreadTimestamp, msg)
} else { } else if ev.ThreadTimestamp == "" && ctx.Focus == context.ChatFocus {
ctx.View.Chat.AddMessage(msg) ctx.View.Chat.AddMessage(msg)
} }