summaryrefslogtreecommitdiff
path: root/internal/client/ui/core/state
diff options
context:
space:
mode:
Diffstat (limited to 'internal/client/ui/core/state')
-rw-r--r--internal/client/ui/core/state/state.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/client/ui/core/state/state.go b/internal/client/ui/core/state/state.go
index 2399f96..b157771 100644
--- a/internal/client/ui/core/state/state.go
+++ b/internal/client/ui/core/state/state.go
@@ -142,6 +142,9 @@ func UpdateMessages(info *packet.MessagesInfo) {
msgSource := message.FrequencyID
if msgSource == nil {
msgSource = message.ReceiverID
+ if *message.ReceiverID == *UserID {
+ msgSource = &message.SenderID
+ }
}
bt := State.Messages[*msgSource]
if bt == nil {