This commit is contained in:
Sean Enck 2018-07-09 19:55:22 -04:00
parent b7c900e0bb
commit 5aeec7faf4
No known key found for this signature in database
GPG Key ID: F08D2E576641A175
1 changed files with 3 additions and 3 deletions

View File

@ -496,9 +496,9 @@ func (cli *Client) SendNotice(roomID, text string) (*RespSendEvent, error) {
// Receipt updates the marker for the given receipt type to the event ID specified.
// See https://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-rooms-roomid-receipt-receipttype-eventid
func (cli *Client) Receipt(roomID, receiptType, eventID string, req *ReqReceipt) (resp *RespReceipt, err error) {
urlPath := cli.BuildURL("rooms", roomID, "receipt", receiptType, eventID)
_, err = cli.MakeRequest("POST", urlPath, req, nil)
return
urlPath := cli.BuildURL("rooms", roomID, "receipt", receiptType, eventID)
_, err = cli.MakeRequest("POST", urlPath, req, nil)
return
}