mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 11:16:51 +00:00
Use getAuthorNames
Depends-On: Ib5f3c7cd6343b582ae9f4b5efcfa24f66243af52 Depends-On: I2a49315d01aa075373f9b5f0d8802a7e7dd4dca3 Change-Id: Ib02945a46326659b652cdc01976396ef698a8080
This commit is contained in:
parent
a975aacbe7
commit
fcd9a480a1
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue