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) {
|
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")
|
||||||
|
|
Loading…
Reference in New Issue