Only ask for a display name once in /poll

This commit is contained in:
yflory 2017-03-03 12:07:16 +01:00
parent a978b51656
commit a68acac13b

View file

@ -647,7 +647,7 @@ define([
// Update the toolbar list:
// Add the current user in the metadata if he has edit rights
if (readOnly) { return; }
if (typeof(lastName) === 'string' && lastName.length) {
if (typeof(lastName) === 'string') {
setName(lastName);
} else {
var myData = {};