|
|
@ -154,8 +154,7 @@ Inputs:
|
|
|
|
- Room alias
|
|
|
|
- Room alias
|
|
|
|
- HS Credentials
|
|
|
|
- HS Credentials
|
|
|
|
Output:
|
|
|
|
Output:
|
|
|
|
- The current state events for the room if any.
|
|
|
|
- Whether the room exists.
|
|
|
|
- The message events for the room if any.
|
|
|
|
|
|
|
|
Side effects:
|
|
|
|
Side effects:
|
|
|
|
- Room is created on the HS by the AS via CS APIs during the processing of
|
|
|
|
- Room is created on the HS by the AS via CS APIs during the processing of
|
|
|
|
this request.
|
|
|
|
this request.
|
|
|
@ -397,10 +396,10 @@ Pre-conditions:
|
|
|
|
HS -> AS: Room Query "#irc.freenode.net/#matrix:hsdomain.com"
|
|
|
|
HS -> AS: Room Query "#irc.freenode.net/#matrix:hsdomain.com"
|
|
|
|
GET /rooms/%23irc.freenode.net%2F%23matrix%3Ahsdomain.com?access_token=T_h
|
|
|
|
GET /rooms/%23irc.freenode.net%2F%23matrix%3Ahsdomain.com?access_token=T_h
|
|
|
|
[Starts blocking]
|
|
|
|
[Starts blocking]
|
|
|
|
AS -> HS: Creates room. Gets room ID "!aasaasasa:matrix.org".
|
|
|
|
AS -> HS: Creates room. Gets room ID "!aasaasasa:hsdomain.com".
|
|
|
|
AS -> HS: Sets room name to "#matrix".
|
|
|
|
AS -> HS: Sets room name to "#matrix".
|
|
|
|
AS -> HS: Sends message as ""@irc.freenode.net/Bob:hsdomain.com"
|
|
|
|
AS -> HS: Sends message as ""@irc.freenode.net/Bob:hsdomain.com"
|
|
|
|
PUT /rooms/%21irc.freenode.net%2F%23matrix%3Ahsdomain.com/send/m.room.message
|
|
|
|
PUT /rooms/%21aasaasasa%3Ahsdomain.com/send/m.room.message
|
|
|
|
?access_token=T_a
|
|
|
|
?access_token=T_a
|
|
|
|
&user_id=%40irc.freenode.net%2FBob%3Ahsdomain.com
|
|
|
|
&user_id=%40irc.freenode.net%2FBob%3Ahsdomain.com
|
|
|
|
&ts=1421416883133
|
|
|
|
&ts=1421416883133
|
|
|
@ -426,7 +425,7 @@ Pre-conditions:
|
|
|
|
4. @alice:hsdomain.com says "hi!" in this room:
|
|
|
|
4. @alice:hsdomain.com says "hi!" in this room:
|
|
|
|
::
|
|
|
|
::
|
|
|
|
|
|
|
|
|
|
|
|
User -> HS: Send message "hi!" in room !irc.freenode.net/#matrix:hsdomain.com
|
|
|
|
User -> HS: Send message "hi!" in room !aasaasasa:hsdomain.com
|
|
|
|
|
|
|
|
|
|
|
|
- HS sends message.
|
|
|
|
- HS sends message.
|
|
|
|
- HS sees the room ID is in the AS namespace and pushes it to the AS.
|
|
|
|
- HS sees the room ID is in the AS namespace and pushes it to the AS.
|
|
|
@ -442,7 +441,7 @@ Pre-conditions:
|
|
|
|
},
|
|
|
|
},
|
|
|
|
origin_server_ts: <generated by hs>,
|
|
|
|
origin_server_ts: <generated by hs>,
|
|
|
|
user_id: "@alice:hsdomain.com",
|
|
|
|
user_id: "@alice:hsdomain.com",
|
|
|
|
room_id: "!irc.freenode.net/#matrix:hsdomain.com",
|
|
|
|
room_id: "!aasaasasa:hsdomain.com",
|
|
|
|
type: "m.room.message"
|
|
|
|
type: "m.room.message"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
@ -456,7 +455,7 @@ Pre-conditions:
|
|
|
|
|
|
|
|
|
|
|
|
IRC -> AS: "what's up?"
|
|
|
|
IRC -> AS: "what's up?"
|
|
|
|
AS -> HS: Send message via CS API extension
|
|
|
|
AS -> HS: Send message via CS API extension
|
|
|
|
PUT /rooms/%21irc.freenode.net%2F%23matrix%3Ahsdomain.com/send/m.room.message
|
|
|
|
PUT /rooms/%21aasaasasa%3Ahsdomain.com/send/m.room.message
|
|
|
|
?access_token=T_a
|
|
|
|
?access_token=T_a
|
|
|
|
&user_id=%40irc.freenode.net%2FBob%3Ahsdomain.com
|
|
|
|
&user_id=%40irc.freenode.net%2FBob%3Ahsdomain.com
|
|
|
|
&ts=1421418084816
|
|
|
|
&ts=1421418084816
|
|
|
|