mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-18 03:23:10 -06:00
24 lines
623 B
Go
24 lines
623 B
Go
package routing
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/matrix-org/dendrite/federationapi/api"
|
|
"github.com/matrix-org/gomatrixserverlib"
|
|
"github.com/matrix-org/util"
|
|
)
|
|
|
|
// ForwardAsync implements /_matrix/federation/v1/forward_async/{txnID}/{userID}
|
|
func ForwardAsync(
|
|
httpReq *http.Request,
|
|
fedReq *gomatrixserverlib.FederationRequest,
|
|
fedAPI api.FederationInternalAPI,
|
|
txnId gomatrixserverlib.TransactionID,
|
|
userID gomatrixserverlib.UserID,
|
|
) util.JSONResponse {
|
|
|
|
// TODO: wrap in fedAPI call
|
|
// fedAPI.db.AssociateAsyncTransactionWithDestinations(context.TODO(), userID, nil)
|
|
|
|
return util.JSONResponse{Code: 200}
|
|
} |