This commit is contained in:
Neil Alexander 2022-09-30 10:35:40 +01:00
parent d370bf2780
commit e91e25d6dc
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -77,7 +77,7 @@ func OnIncomingMessagesRequest(
return jsonerror.InternalServerError() return jsonerror.InternalServerError()
} }
var succeeded bool var succeeded bool
defer sqlutil.EndTransaction(snapshot, &succeeded) defer sqlutil.EndTransactionWithCheck(snapshot, &succeeded, &err)
// check if the user has already forgotten about this room // check if the user has already forgotten about this room
isForgotten, roomExists, err := checkIsRoomForgotten(req.Context(), roomID, device.UserID, rsAPI) isForgotten, roomExists, err := checkIsRoomForgotten(req.Context(), roomID, device.UserID, rsAPI)