Merge branch 'tls-fix' of https://github.com/neuroscr/loki-messenger into tls-fix

pull/827/head
Ryan Tharp 5 years ago
commit 846228ce26

@ -109,13 +109,10 @@ class LokiAppDotNetServerAPI {
JSON.stringify(objToSign) JSON.stringify(objToSign)
); );
*/ */
let pName = profileName;
// You cannot use null to clear the profile name // You cannot use null to clear the profile name
// the name key has to be set to know what value we want changed // the name key has to be set to know what value we want changed
if (pName === undefined || pName === null) { const pName = profileName || '';
pName = '';
}
const res = await this.serverRequest('users/me', { const res = await this.serverRequest('users/me', {
method: 'PATCH', method: 'PATCH',

Loading…
Cancel
Save