fix: need to set known

This commit is contained in:
Derrick Hammer 2024-01-07 08:07:32 -05:00
parent a59b7d44d6
commit ebd95f59d4
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 0 deletions

View File

@ -45,6 +45,7 @@ func (i *IncomingMessageImpl) Original() []byte {
func (i *IncomingMessageImpl) SetIncomingMessage(msg IncomingMessage) { func (i *IncomingMessageImpl) SetIncomingMessage(msg IncomingMessage) {
if msgImpl, ok := msg.(*IncomingMessageImpl); ok { if msgImpl, ok := msg.(*IncomingMessageImpl); ok {
*i = *msgImpl *i = *msgImpl
i.known = true
} else { } else {
// Handle the error or panic // Handle the error or panic
panic("msg is not of type *IncomingMessageImpl") panic("msg is not of type *IncomingMessageImpl")