aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/msgstore.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/msgstore.go b/lib/msgstore.go
index a29aad4f..bd8d54d5 100644
--- a/lib/msgstore.go
+++ b/lib/msgstore.go
@@ -225,7 +225,9 @@ func (store *MessageStore) Update(msg types.WorkerMessage) {
if existing, ok := store.Messages[msg.Info.Uid]; ok && existing != nil {
merge(existing, msg.Info)
} else {
- store.Messages[msg.Info.Uid] = msg.Info
+ if msg.Info.Envelope != nil {
+ store.Messages[msg.Info.Uid] = msg.Info
+ }
}
seen := false
recent := false