Merge "Use getAuthorNames"

This commit is contained in:
Jforrester 2018-05-18 18:47:33 +00:00 committed by Gerrit Code Review
commit ed049cb646

View file

@ -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 );
}