mirror of
https://github.com/nextcloud/ocsms.git
synced 2026-08-11 16:32:55 +00:00
Set contact colours on uids (#152)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
@@ -236,6 +236,12 @@ app.controller('OcSmsController', ['$scope', '$interval', '$timeout', '$compile'
|
||||
contactObj.avatar = jsondata['photos'][peerLabel];
|
||||
}
|
||||
|
||||
if (typeof jsondata['uids'][peerLabel] != 'undefined') {
|
||||
contactObj.uid = jsondata['uids'][peerLabel];
|
||||
} else {
|
||||
contactObj.uid = peerLabel;
|
||||
}
|
||||
|
||||
$scope.modifyContact(contactObj);
|
||||
bufferedContacts.push(peerLabel);
|
||||
|
||||
@@ -403,6 +409,13 @@ app.controller('OcSmsController', ['$scope', '$interval', '$timeout', '$compile'
|
||||
if (typeof(jsondata['photos'][peerLabel]) != 'undefined') {
|
||||
contactObj['avatar'] = jsondata['photos'][peerLabel];
|
||||
}
|
||||
|
||||
if (typeof jsondata['uids'][peerLabel] != 'undefined') {
|
||||
contactObj.uid = jsondata['uids'][peerLabel];
|
||||
} else {
|
||||
contactObj.uid = peerLabel;
|
||||
}
|
||||
|
||||
$scope.addContact(contactObj);
|
||||
bufferedContacts.push(peerLabel);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user