mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
Merge branch 'tls-fix' of https://github.com/neuroscr/loki-messenger into tls-fix
This commit is contained in:
commit
846228ce26
1 changed files with 1 additions and 4 deletions
|
@ -109,13 +109,10 @@ class LokiAppDotNetServerAPI {
|
|||
JSON.stringify(objToSign)
|
||||
);
|
||||
*/
|
||||
let pName = profileName;
|
||||
|
||||
// You cannot use null to clear the profile name
|
||||
// the name key has to be set to know what value we want changed
|
||||
if (pName === undefined || pName === null) {
|
||||
pName = '';
|
||||
}
|
||||
const pName = profileName || '';
|
||||
|
||||
const res = await this.serverRequest('users/me', {
|
||||
method: 'PATCH',
|
||||
|
|
Loading…
Reference in a new issue