@@ -186,7 +186,7 @@ Other error codes the client might encounter are:
186186 permits, for example, email addresses from a particular domain.
187187
188188:``M_SERVER_NOT_TRUSTED ``:
189- The client's request used a third party server, eg . identity server, that this server does not trust.
189+ The client's request used a third party server, e.g . identity server, that this server does not trust.
190190
191191:``M_UNSUPPORTED_ROOM_VERSION ``:
192192 The client's request to create a room used a room version that the server does not support.
@@ -228,8 +228,8 @@ Other error codes the client might encounter are:
228228 may reach a resource limit if it starts using too much memory or disk space. The
229229 error MUST have an ``admin_contact `` field to provide the user receiving the error
230230 a place to reach out to. Typically, this error will appear on routes which attempt
231- to modify state (eg : sending messages, account data, etc) and not routes which only
232- read state (eg : ``/sync ``, get account data, etc).
231+ to modify state (e.g. : sending messages, account data, etc) and not routes which only
232+ read state (e.g. : ``/sync ``, get account data, etc).
233233
234234:``M_CANNOT_LEAVE_SERVER_NOTICE_ROOM ``:
235235 The user is unable to reject an invite to join the server notices room. See the
@@ -266,8 +266,8 @@ to pre-flight requests and supply Cross-Origin Resource Sharing (CORS) headers o
266266all requests.
267267
268268Servers MUST expect that clients will approach them with ``OPTIONS `` requests,
269- allowing clients to discover the CORS headers. All endpoints in this specification s
270- upport the ``OPTIONS `` method, however the server MUST NOT perform any logic defined
269+ allowing clients to discover the CORS headers. All endpoints in this specification
270+ support the ``OPTIONS `` method, however the server MUST NOT perform any logic defined
271271for the endpoints when approached with an ``OPTIONS `` request.
272272
273273When a client approaches the server with a request, the server should respond with
@@ -438,7 +438,7 @@ homeserver may provide many different ways of authenticating, such as
438438user/password auth, login via a single-sign-on server (SSO), etc. This
439439specification does not define how homeservers should authorise their users but
440440instead defines the standard interface which implementations should follow so
441- that ANY client can login to ANY homeserver.
441+ that ANY client can log in to ANY homeserver.
442442
443443The process takes the form of one or more 'stages'. At each stage the client
444444submits a set of data for a given authentication type and awaits a response
@@ -707,7 +707,7 @@ For example, to authenticate using the user's Matrix ID, clients would submit:
707707 }
708708
709709 Alternatively reply using a 3PID bound to the user's account on the homeserver
710- using the |/account/3pid |_ API rather then giving the ``user `` explicitly as
710+ using the |/account/3pid |_ API rather than giving the ``user `` explicitly as
711711follows:
712712
713713.. code :: json
@@ -827,7 +827,7 @@ Dummy Auth
827827 Dummy authentication always succeeds and requires no extra parameters. Its
828828 purpose is to allow servers to not require any form of User-Interactive
829829 Authentication to perform a request. It can also be used to differentiate
830- flows where otherwise one flow would be a subset of another flow. eg . if
830+ flows where otherwise one flow would be a subset of another flow. e.g . if
831831 a server offers flows ``m.login.recaptcha `` and ``m.login.recaptcha,
832832 m.login.email.identity `` and the client completes the recaptcha stage first,
833833 the auth would succeed with the former flow, even if the client was intending
@@ -878,7 +878,7 @@ to be defined in an embedded browser, or to use the HTML5 `cross-document
878878messaging <https://www.w3.org/TR/webmessaging/#web-messaging> `_ API, to receive
879879a notification that the authentication stage has been completed.
880880
881- Once a client receives the notificaton that the authentication stage has been
881+ Once a client receives the notification that the authentication stage has been
882882completed, it should resubmit the request with an auth dict with just the
883883session ID:
884884
@@ -891,19 +891,19 @@ session ID:
891891
892892 Example
893893<<<<<<<
894- A client webapp might use the following javascript to open a popup window which will
894+ A client webapp might use the following JavaScript to open a popup window which will
895895handle unknown login types:
896896
897897.. code :: javascript
898898
899899 /**
900900 * Arguments:
901- * homeserverUrl: the base url of the homeserver (eg "https://matrix.org")
901+ * homeserverUrl: the base url of the homeserver (e.g. "https://matrix.org")
902902 *
903- * apiEndpoint: the API endpoint being used (eg
903+ * apiEndpoint: the API endpoint being used (e.g.
904904 * "/_matrix/client/%CLIENT_MAJOR_VERSION%/account/password")
905905 *
906- * loginType: the loginType being attempted (eg "m.login.recaptcha")
906+ * loginType: the loginType being attempted (e.g. "m.login.recaptcha")
907907 *
908908 * sessionID: the session ID given by the homeserver in earlier requests
909909 *
@@ -930,7 +930,7 @@ handle unknown login types:
930930 };
931931
932932 request ({
933- method: ' POST' , url: apiEndpint , json: requestBody,
933+ method: ' POST' , url: apiEndpoint , json: requestBody,
934934 }, onComplete);
935935 };
936936
@@ -1044,7 +1044,7 @@ request as follows:
10441044 }
10451045
10461046 Alternatively, a client can use a 3PID bound to the user's account on the
1047- homeserver using the |/account/3pid |_ API rather then giving the ``user ``
1047+ homeserver using the |/account/3pid |_ API rather than giving the ``user ``
10481048explicitly, as follows:
10491049
10501050.. code :: json
@@ -1130,7 +1130,7 @@ can be proxied (bound) to the identity server in many cases.
11301130 This section deals with two terms: "add" and "bind". Where "add" (or "remove")
11311131 is used, it is speaking about an identifier that was not bound to an identity
11321132 server. As a result, "bind" (or "unbind") references an identifier that is found
1133- in an identity server. Note that an identifer can be added and bound at the same
1133+ in an identity server. Note that an identifier can be added and bound at the same
11341134 time, depending on context.
11351135
11361136{{administrative_contact_cs_http_api}}
@@ -1745,7 +1745,7 @@ same way a server does.
17451745 except those protected by the redaction algorithm. For example,
17461746 a redacted ``join `` event will still result in the user being considered joined.
17471747 Similarly, a redacted topic does not necessarily cause the topic to revert to
1748- what is was prior to the event - it causes the topic to be removed from the room.
1748+ what it was prior to the event - it causes the topic to be removed from the room.
17491749
17501750
17511751Events
@@ -1977,9 +1977,9 @@ many places of a client's display, changes to these fields cause an automatic
19771977propagation event to occur, informing likely-interested parties of the new
19781978values. This change is conveyed using two separate mechanisms:
19791979
1980- - a ``m.room.member `` event (with a ``join `` membership) is sent to every room
1980+ - an ``m.room.member `` event (with a ``join `` membership) is sent to every room
19811981 the user is a member of, to update the ``displayname `` and ``avatar_url ``.
1982- - a ``m.presence `` presence status update is sent, again containing the new
1982+ - an ``m.presence `` presence status update is sent, again containing the new
19831983 values of the ``displayname `` and ``avatar_url `` keys, in addition to the
19841984 required ``presence `` key containing the current presence state of the user.
19851985
0 commit comments