Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 82b0c4a

Browse files
author
Ella Katz
committed
fix mark as read
1 parent 3ddd1ed commit 82b0c4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

intercom/service/conversation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def collection_class(self):
2525

2626
def resource_url(self, _id):
2727
"""Return the URL for the specified resource in this collection."""
28-
return "/%s/%s/reply" % (self.collection, _id)
28+
return "/%s/%s" % (self.collection, _id)
2929

3030
def reply(self, **reply_data):
3131
"""Reply to a message."""
@@ -59,5 +59,5 @@ def __reply(self, reply_data):
5959
"""Send requests to the resource handler."""
6060
_id = reply_data.pop('id')
6161
reply_data['conversation_id'] = _id
62-
response = self.client.post(self.resource_url(_id), reply_data)
62+
response = self.client.post(self.resource_url(_id) + "/reply", reply_data)
6363
return self.collection_class().from_response(response)

0 commit comments

Comments
 (0)