mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 08:10:35 +00:00
Merge "Use getAuthorNames"
This commit is contained in:
commit
ed049cb646
|
@ -130,7 +130,7 @@ ve.init.mw.CollabTarget.prototype.setSurface = function ( surface ) {
|
|||
{ server: this.rebaserUrl }
|
||||
);
|
||||
synchronizer.on( 'authorNameChange', function ( authorId ) {
|
||||
var newName = synchronizer.authorNames[ authorId ];
|
||||
var newName = synchronizer.getAuthorName( authorId );
|
||||
if ( authorId === synchronizer.getAuthorId() ) {
|
||||
mw.storage.session.set( 've-collab-username', newName );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue