Skip to content

Commit

Permalink
Fix received message handling and chat/thread focus
Browse files Browse the repository at this point in the history
Reference #91
  • Loading branch information
jpbruinsslot committed Oct 5, 2019
1 parent d36cd2d commit 1b3e192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 1b3e192

Please sign in to comment.