Improve handling of weird potentially non-corner case in GetMessageIntent()
This commit is contained in:
parent
87b135e2a6
commit
b978930c88
@ -396,8 +396,12 @@ func (portal *Portal) GetMessageIntent(info whatsapp.MessageInfo) *appservice.In
|
||||
} else if portal.IsPrivateChat() {
|
||||
return portal.MainIntent()
|
||||
} else if len(info.SenderJid) == 0 {
|
||||
if len(info.Source.GetParticipant()) != 0 {
|
||||
info.SenderJid = info.Source.GetParticipant()
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
return portal.user.GetPuppetByJID(info.SenderJid).Intent()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user