mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 00:44:49 -04:00
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:
parent
7f5c7ddea9
commit
dccb2f57be
2 changed files with 43 additions and 41 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue