Eric Eastwood 2020-12-16 15:10:36 -06:00
parent e1ace7e44a
commit e8085a9493

View file

@ -52,6 +52,12 @@ func SendEvent(
rsAPI api.RoomserverInternalAPI, rsAPI api.RoomserverInternalAPI,
txnCache *transactions.Cache, txnCache *transactions.Cache,
) util.JSONResponse { ) util.JSONResponse {
prevEvent := req.URL.Query().Get("prev_event")
util.GetLogger(req.Context()).WithFields(logrus.Fields{
"prevEvent": prevEvent,
}).Info("prevEvent")
verReq := api.QueryRoomVersionForRoomRequest{RoomID: roomID} verReq := api.QueryRoomVersionForRoomRequest{RoomID: roomID}
verRes := api.QueryRoomVersionForRoomResponse{} verRes := api.QueryRoomVersionForRoomResponse{}
if err := rsAPI.QueryRoomVersionForRoom(req.Context(), &verReq, &verRes); err != nil { if err := rsAPI.QueryRoomVersionForRoom(req.Context(), &verReq, &verRes); err != nil {