fix: need to set known
This commit is contained in:
parent
a59b7d44d6
commit
ebd95f59d4
|
@ -45,6 +45,7 @@ func (i *IncomingMessageImpl) Original() []byte {
|
|||
func (i *IncomingMessageImpl) SetIncomingMessage(msg IncomingMessage) {
|
||||
if msgImpl, ok := msg.(*IncomingMessageImpl); ok {
|
||||
*i = *msgImpl
|
||||
i.known = true
|
||||
} else {
|
||||
// Handle the error or panic
|
||||
panic("msg is not of type *IncomingMessageImpl")
|
||||
|
|
Loading…
Reference in New Issue