    App.prototype.updateUserElement = function()
    {
    	appUpdateUserElement.apply(this, arguments);
    	
		if (this.userElement != null)
		{
			var elt = this.userElement;
    		elt.style.cssText = 'position:relative;margin-right:4px;cursor:pointer;display:' + elt.style.display;
    		elt.className = 'geToolbarButton';
    		elt.innerHTML = '';
			elt.style.backgroundImage = 'url(' + Editor.userImage + ')';
        	elt.style.backgroundPosition = 'center center';
        	elt.style.backgroundRepeat = 'no-repeat';
        	elt.style.backgroundSize = '24px 24px';
        	elt.style.height = '24px';
        	elt.style.width = '24px';
        	elt.style.cssFloat = 'right';
        	elt.setAttribute('title', mxResources.get('changeUser'));
        	
        	if (elt.style.display != 'none')
        	{
        		elt.style.display = 'inline-block';

				var file = this.getCurrentFile();
	
				if (file != null && file.isRealtimeEnabled() && file.isRealtimeSupported())
				{
					var icon = document.createElement('img');
					icon.setAttribute('border', '0');
					icon.style.position = 'absolute';
					icon.style.left = '18px';
					icon.style.top = '2px';
					icon.style.width = '12px';
					icon.style.height = '12px';
					// icon.style.cursor = 'default';

					var err = file.getRealtimeError();
					var state = file.getRealtimeState();
					var status = mxResources.get('realtimeCollaboration');

					if (state == 1)
					{
						icon.src = Editor.syncImage;
						status += ' (' + mxResources.get('online') + ')';
					}
					else
					{
						icon.src = Editor.syncProblemImage;

						if (err != null && err.message != null)
						{
							status += ' (' + err.message + ')';
						}
						else
						{
							status += ' (' + mxResources.get('disconnected') + ')';
						}
					}
					
					icon.setAttribute('title', status);
					elt.style.paddingRight = '4px';
					elt.appendChild(icon);
				}
        	}
		}
    };
The software constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.