Disable the ability to GET individualy messages. We need to think about the correct API to do this, as the current one doesn't make much sense.

This commit is contained in:
Erik Johnston 2014-08-18 10:59:04 +01:00
parent 7f5c7ddea9
commit dccb2f57be
2 changed files with 43 additions and 41 deletions

View file

@ -59,12 +59,14 @@ class MessageHandler(BaseHandler):
yield self.auth.check_joined_room(room_id, user_id)
# Pull out the message from the db
msg = yield self.store.get_message(room_id=room_id,
msg_id=msg_id,
user_id=sender_id)
# msg = yield self.store.get_message(
# room_id=room_id,
# msg_id=msg_id,
# user_id=sender_id
# )
# TODO (erikj): Once we work out the correct c-s api we need to think on how to do this.
if msg:
defer.returnValue(msg)
defer.returnValue(None)
@defer.inlineCallbacks