Permalink
Browse files

Styling and ES5 only

  • Loading branch information...
1 parent ce684a6 commit fac40f5183183f2c872140038674cdcd04c7acd7 @Kegsay Kegsay committed Jan 4, 2017
Showing with 6 additions and 5 deletions.
  1. +6 −5 lib/client.js
View
@@ -1490,7 +1490,7 @@ function _presenceList(callback, client, opts, method) {
*/
MatrixClient.prototype.getPresenceList = function(callback) {
return _presenceList(callback, this, undefined, "GET");
-}
+};
/**
* Add users to the current user presence list.
@@ -1500,9 +1500,9 @@ MatrixClient.prototype.getPresenceList = function(callback) {
* @return {module:http-api.MatrixError} Rejects: with an error response.
*/
MatrixClient.prototype.inviteToPresenceList = function(callback, userIds) {
- let opts = {"invite" : userIds};
+ var opts = {"invite" : userIds};
return _presenceList(callback, this, opts, "POST");
-}
+};
/**
* Drop users from the current user presence list.
@@ -1512,9 +1512,10 @@ MatrixClient.prototype.inviteToPresenceList = function(callback, userIds) {
* @return {module:http-api.MatrixError} Rejects: with an error response.
**/
MatrixClient.prototype.dropFromPresenceList = function(callback, userIds) {
- let opts = {"drop" : userIds};
+ var opts = {"drop" : userIds};
return _presenceList(callback, this, opts, "POST");
-}
+};
+
/**
* Retrieve older messages from the given room and put them in the timeline.
*

0 comments on commit fac40f5

Please sign in to comment.