Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6211b1d9 authored by AVINASH GUSAIN's avatar AVINASH GUSAIN
Browse files

remove function getAccountId

parent f23d7285
Loading
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -46,14 +46,4 @@ class BeforeTemplateRenderedListener implements IEventListener {
		}

	}

	private function getAccountId(): string {
		$username = $this->userSession->getUser()->getUID();
		if ($this->config->getAppValue('snappymail', 'snappymail-autologin', false)) {
			return $username;
		}
		if ($this->config->getAppValue('snappymail', 'snappymail-autologin-with-email', false)) {
			return $this->config->getUserValue($username, 'settings', 'email', '');
		}
	}
}