diff --git a/integrations/nextcloud/snappymail/lib/AppInfo/Application.php b/integrations/nextcloud/snappymail/lib/AppInfo/Application.php index 466286ef0..a7ca9430b 100644 --- a/integrations/nextcloud/snappymail/lib/AppInfo/Application.php +++ b/integrations/nextcloud/snappymail/lib/AppInfo/Application.php @@ -99,5 +99,14 @@ class Application extends App implements IBootstrap SnappyMailHelper::loadApp(); \RainLoop\Api::Actions()->Logout(true); }); + +/* + // https://github.com/nextcloud/impersonate/issues/179 + $userSession->listen('\OC\User', 'impersonate', function($user, $newUser) { + \OC::$server->getSession()['snappymail-password'] = ''; + SnappyMailHelper::loadApp(); + \RainLoop\Api::Actions()->Logout(true); + }); +*/ } }