Make sure we don't call both the yes and no handlers in prompts

This commit is contained in:
yflory
2017-06-26 16:23:55 +02:00
parent c431041e3f
commit 33ea8cb183
3 changed files with 21 additions and 5 deletions

View File

@@ -730,7 +730,7 @@ define([
Cryptpad.prompt(Messages.changeNamePrompt, lastName || '', function (newName) {
if (newName === null && typeof(lastName) === "string") { return; }
if (newName === null) { newName = ''; }
Cryptpad.changeDisplayName(newName);
Cryptpad.changeDisplayName(newName, true);
});
});
});