[bugfix] Account for nil reply when serializing int req (#3389)

This commit is contained in:
tobi 2024-10-05 11:36:01 +02:00 committed by GitHub
parent d3d6e3f920
commit 37a3d224a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -2711,7 +2711,7 @@ func (c *Converter) InteractionReqToAPIInteractionReq(
}
var reply *apimodel.Status
if req.InteractionType == gtsmodel.InteractionReply {
if req.InteractionType == gtsmodel.InteractionReply && req.Reply != nil {
reply, err = c.statusToAPIStatus(
ctx,
req.Reply,