Use getAuthorNames

Depends-On: Ib5f3c7cd6343b582ae9f4b5efcfa24f66243af52
Depends-On: I2a49315d01aa075373f9b5f0d8802a7e7dd4dca3
Change-Id: Ib02945a46326659b652cdc01976396ef698a8080
This commit is contained in:
Ed Sanders 2018-05-17 12:17:11 +01:00 committed by Thiemo Kreuz (WMDE)
parent a975aacbe7
commit fcd9a480a1

View file

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