Skip to content

Commit

Permalink
update: fix m.Origin check
Browse files Browse the repository at this point in the history
  • Loading branch information
demget committed Aug 10, 2024
1 parent 898c3e1 commit 7ee7bd3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions update.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ func (b *Bot) ProcessContext(c Context) {
return
}

if m.Origin != nil {
b.handle(OnForward, c)
}

// Commands
if m.Text != "" {
// Filtering malicious messages
Expand Down Expand Up @@ -88,10 +92,6 @@ func (b *Bot) ProcessContext(c Context) {
return
}

if m.Origin != nil {
b.handle(OnForward, c)
}

if m.Contact != nil {
b.handle(OnContact, c)
return
Expand Down

0 comments on commit 7ee7bd3

Please sign in to comment.