Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Start adding store-and-forward direct-to-device messaging #1046

Merged
merged 6 commits into from
Aug 26, 2016

Conversation

NegativeMjark
Copy link
Contributor

Implement the local part of direct-to-device messaging intended for exchanging end-to-end keys and other device-to-device signalling.


class SendToDeviceRestServlet(servlet.RestServlet):
PATTERNS = client_v2_patterns(
"/sendToDevice/(?P<message_type>[^/]*)/(?P<txn_id>[^/]*)$",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use underscores fore APIs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

camelcased:

/_matrix/client/r0/createRoom
/_matrix/client/r0/initialSync
/_matrix/client/r0/publicRooms
/_matrix/client/r0/voip/turnServer
^/_matrix/client/r0/rooms/[^/]*/initialSync$

underscores:

^/_matrix/client/r0/profile/[^/]*/avatar_url$
^/_matrix/client/r0/user/[^/]*/account_data/[^/]*$

lowercase:

^/_matrix/client/r0/pushrules/
^/_matrix/client/r0/profile/[^/]*/displayname$

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I retract my previous statement, and replace it with: your style isn't inconsistent enough.

@erikjohnston
Copy link
Member

LGTM. Tests look like you need to merge in from develop.

@NegativeMjark NegativeMjark merged commit 8c1e746 into develop Aug 26, 2016
@NegativeMjark NegativeMjark deleted the markjh/direct_to_device branch September 2, 2016 09:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants