mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 08:24:53 -04:00
Better call bar (visually: still lacks ring[back] tones).
This commit is contained in:
parent
fc65b68f30
commit
c03c255304
7 changed files with 112 additions and 18 deletions
|
@ -295,6 +295,11 @@ angular.module('matrixService', [])
|
|||
return doRequest("GET", path);
|
||||
},
|
||||
|
||||
// get a user's profile
|
||||
getProfile: function(userId) {
|
||||
return this.getProfileInfo(userId);
|
||||
},
|
||||
|
||||
// get a display name for this user ID
|
||||
getDisplayName: function(userId) {
|
||||
return this.getProfileInfo(userId, "displayname");
|
||||
|
@ -328,8 +333,8 @@ angular.module('matrixService', [])
|
|||
},
|
||||
|
||||
getProfileInfo: function(userId, info_segment) {
|
||||
var path = "/profile/$user_id/" + info_segment;
|
||||
path = path.replace("$user_id", userId);
|
||||
var path = "/profile/"+userId
|
||||
if (info_segment) path += '/' + info_segment;
|
||||
return doRequest("GET", path);
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue