Skip to content

Commit

Permalink
MSC2716: Incremental existing history
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Eastwood authored and Eric Eastwood committed Dec 17, 2020
1 parent e1ace7e commit e8085a9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions clientapi/routing/sendevent.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ func SendEvent(
rsAPI api.RoomserverInternalAPI,
txnCache *transactions.Cache,
) 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}
verRes := api.QueryRoomVersionForRoomResponse{}
if err := rsAPI.QueryRoomVersionForRoom(req.Context(), &verReq, &verRes); err != nil {
Expand Down

0 comments on commit e8085a9

Please sign in to comment.