     kd.singletons.mainView.activitySidebar.removeMachineNode @mountedMachine
 
 
+  ensureMachineShare: (usernames, callback) ->
+
+    kite = @mountedMachine.getBaseKite()
+
+    kite.klientShared null
+
+      .then (response) =>
+        participants = response.split ','
+        missing = usernames.filter (username) =>
+          participants.indexOf(username) is -1
+
+        @setMachineUser missing, yes, callback
+
+      .catch (err) =>
+        throwError err
+        callback()
+
+
   setMachineSharingStatus: (status, callback) ->
 
     getUsernames = (accounts) ->


    else unless newValue
      @statusBar.emit 'ParticipantUnwatched', property


  resurrectSnapshot: ->

        else
          @handleParticipantKicked data.target

      when 'SetMachineUser'

        return  if data.participants.indexOf(nick()) is -1

        @handleSharedMachine()


  handlePermissionMapChange: (event) ->

