Make #1689 optional through application.ini

This commit is contained in:
the-djmaze 2024-08-11 12:00:24 +02:00
parent c33dd8f856
commit a969179cbf
2 changed files with 2 additions and 1 deletions

View file

@ -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'),

View file

@ -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;
}