add log line for missing sender ID in SendRedaction

This commit is contained in:
Sam Wedgwood 2023-08-01 15:31:03 +01:00
parent 2c9ccd2025
commit 34b3653803

View file

@ -77,6 +77,7 @@ func SendRedaction(
// if user is member of room, and sender ID is nil, then this user doesn't have a pseudo ID for some reason,
// which is unexpected.
if senderID == nil {
util.GetLogger(req.Context()).WithField("userID", *deviceUserID).WithField("roomID", roomID).Error("missing sender ID for user, despite having membership")
return util.JSONResponse{
Code: http.StatusInternalServerError,
JSON: spec.Unknown("internal server error"),