BUGFIX: reference group contact when updating timeline
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Sarah Jamie Lewis 2021-06-09 11:03:10 -07:00
parent 1b612071f2
commit 28fd9372de
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ func (p *Profile) UpdateMessageFlags(handle string, mIdx int, flags uint64) {
}
} else if group, exists := p.Groups[handle]; exists {
if len(group.Timeline.Messages) > mIdx {
contact.Timeline.Messages[mIdx].Flags = flags
group.Timeline.Messages[mIdx].Flags = flags
}
}
}