mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-20 07:35:55 +08:00
Make #1689 optional through application.ini
This commit is contained in:
parent
c33dd8f856
commit
a969179cbf
|
@ -190,6 +190,7 @@ class Application extends \RainLoop\Config\AbstractConfig
|
|||
|
||||
'allow_additional_accounts' => array(true),
|
||||
'allow_additional_identities' => array(true),
|
||||
'popup_identity' => array(true, 'When identity is not set yet, open identity popup after login'),
|
||||
|
||||
'messages_per_page' => array(20, 'Number of messages displayed on page by default'),
|
||||
'message_read_delay' => array(5, 'Mark message read after N seconds'),
|
||||
|
|
|
@ -50,7 +50,7 @@ class Identities extends AbstractProvider
|
|||
// If no primary identity is found, generate default one from account info
|
||||
if (!$primaryIdentity) {
|
||||
$primaryIdentity = new Identity('', $account->Email());
|
||||
$primaryIdentity->exists = false;
|
||||
$primaryIdentity->exists = !\RainLoop\Api::Config()->Get('webmail', 'popup_identity', true);
|
||||
$identities[] = $primaryIdentity;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue