mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 16:37:02 +03:00
Make #1689 optional through application.ini
This commit is contained in:
parent
c33dd8f856
commit
a969179cbf
2 changed files with 2 additions and 1 deletions
|
|
@ -190,6 +190,7 @@ class Application extends \RainLoop\Config\AbstractConfig
|
||||||
|
|
||||||
'allow_additional_accounts' => array(true),
|
'allow_additional_accounts' => array(true),
|
||||||
'allow_additional_identities' => 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'),
|
'messages_per_page' => array(20, 'Number of messages displayed on page by default'),
|
||||||
'message_read_delay' => array(5, 'Mark message read after N seconds'),
|
'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 no primary identity is found, generate default one from account info
|
||||||
if (!$primaryIdentity) {
|
if (!$primaryIdentity) {
|
||||||
$primaryIdentity = new Identity('', $account->Email());
|
$primaryIdentity = new Identity('', $account->Email());
|
||||||
$primaryIdentity->exists = false;
|
$primaryIdentity->exists = !\RainLoop\Api::Config()->Get('webmail', 'popup_identity', true);
|
||||||
$identities[] = $primaryIdentity;
|
$identities[] = $primaryIdentity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue