fix: improving internal protocol - pass messageID and parentMessageID

messageID and parentMessageID are cleared in the gateway.
We need this info in Status to handle replies.

Issue #13258
This commit is contained in:
Michal Iskierko
2024-03-07 15:25:27 +01:00
committed by Michał Iskierko
parent 6d31343205
commit 1c7da47b09
3 changed files with 30 additions and 2 deletions

View File

@@ -48,6 +48,11 @@ type Message struct {
Extra map[string][]interface{}
}
type OriginalMessageIds struct {
ID string `json:"id"`
ParentID string `json:"parent_id"`
}
func (m Message) ParentNotFound() bool {
return m.ParentID == ParentIDNotFound
}