mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 11:16:51 +00:00
CollabTarget: set name to logged in MW user
Change-Id: Ic39ce1790d3a267123810bdb87cc0a844df0d42c
This commit is contained in:
parent
a5814e2213
commit
c3d03ae101
|
@ -124,6 +124,13 @@ ve.init.mw.CollabTarget.prototype.setSurface = function ( surface ) {
|
|||
{ server: this.rebaserUrl }
|
||||
);
|
||||
|
||||
// TODO: server could communicate with MW (via oauth?) to know the
|
||||
// current-user's name. Disable changing name if logged in?
|
||||
// Communicate an I-am-a-valid-user flag to other clients?
|
||||
if ( !mw.user.isAnon() ) {
|
||||
synchronizer.changeName( mw.user.getName() );
|
||||
}
|
||||
|
||||
surfaceView.setSynchronizer( synchronizer );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue