Add persistent message map

Resolves #541
This commit is contained in:
Yousef Mansy
2023-02-28 22:50:17 -08:00
parent 0527f01904
commit c0f5d0c5f7
106 changed files with 22946 additions and 6 deletions

View File

@@ -231,7 +231,13 @@ func (gw *Gateway) handleMessage(rmsg *config.Message, dest *bridge.Bridge) []*B
if msgID == "" {
continue
}
brMsgIDs = append(brMsgIDs, &BrMsgID{dest, dest.Protocol + " " + msgID, channel.ID})
brMsgIDs = append(brMsgIDs,
&BrMsgID{
Protocol: dest.Protocol,
DestName: dest.Name,
ChannelID: channel.ID,
ID: msgID,
})
}
return brMsgIDs
}