mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 10:09:20 +03:00
Remove IsExternal
Signed-off-by: Akhil <akhil@e.email>
This commit is contained in:
parent
cdaa4b1434
commit
0c9e4717a3
8 changed files with 1 additions and 25 deletions
|
|
@ -4,7 +4,7 @@ import { ThemeStore } from 'Stores/Theme';
|
|||
import { arePopupsVisible } from 'Knoin/Knoin';
|
||||
|
||||
export const AppUserStore = {
|
||||
allowContacts: () => !!SettingsGet('contactsAllowed') && !!SettingsGet('contactsExternal')
|
||||
allowContacts: () => !!SettingsGet('contactsAllowed')
|
||||
};
|
||||
|
||||
addObservablesTo(AppUserStore, {
|
||||
|
|
|
|||
|
|
@ -99,11 +99,6 @@ class KolabAddressBook implements \RainLoop\Providers\AddressBook\AddressBookInt
|
|||
return true;
|
||||
}
|
||||
|
||||
public function IsExternal(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function SetEmail(string $sEmail) : bool
|
||||
{
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -38,11 +38,6 @@ class NextcloudAddressBook implements \RainLoop\Providers\AddressBook\AddressBoo
|
|||
return true;
|
||||
}
|
||||
|
||||
public function IsExternal(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function SetEmail(string $sEmail) : bool {
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -678,7 +678,6 @@ class Actions
|
|||
'accountSignMe' => isset($_COOKIE[self::AUTH_SIGN_ME_TOKEN_KEY]),
|
||||
|
||||
'contactsAllowed' => $this->AddressBookProvider($oAccount)->IsActive(),
|
||||
'contactsExternal' => $this->AddressBookProvider($oAccount)->IsExternal(),
|
||||
|
||||
'ViewHTML' => (bool) $oConfig->Get('defaults', 'view_html', true),
|
||||
'ViewImages' => $oConfig->Get('defaults', 'view_images', 'ask'),
|
||||
|
|
|
|||
|
|
@ -202,7 +202,6 @@ trait Accounts
|
|||
'accountHash' => $oAccount->Hash(),
|
||||
'mainEmail' => \RainLoop\Api::Actions()->getMainAccountFromToken()->Email(),
|
||||
'contactsAllowed' => $this->AddressBookProvider($oAccount)->IsActive(),
|
||||
'contactsExternal' => $this->AddressBookProvider($oAccount)->IsExternal(),
|
||||
'HideUnsubscribed' => false,
|
||||
'UseThreads' => (bool) $oConfig->Get('defaults', 'mail_use_threads', false),
|
||||
'ReplySameFolder' => (bool) $oConfig->Get('defaults', 'mail_reply_same_folder', false),
|
||||
|
|
|
|||
|
|
@ -25,11 +25,6 @@ class AddressBook extends AbstractProvider
|
|||
return $this->oDriver && $this->oDriver->IsSupported();
|
||||
}
|
||||
|
||||
public function IsExternal() : bool
|
||||
{
|
||||
return $this->IsActive() ? $this->oDriver->IsExternal() : false;
|
||||
}
|
||||
|
||||
public function Sync() : bool
|
||||
{
|
||||
return $this->IsActive() ? $this->oDriver->Sync() : false;
|
||||
|
|
|
|||
|
|
@ -6,8 +6,6 @@ interface AddressBookInterface
|
|||
{
|
||||
public function IsSupported() : bool;
|
||||
|
||||
public function IsExternal() : bool;
|
||||
|
||||
public function SetEmail(string $sEmail) : bool;
|
||||
|
||||
public function Sync() : bool;
|
||||
|
|
|
|||
|
|
@ -75,11 +75,6 @@ class PdoAddressBook
|
|||
$aDrivers = static::getAvailableDrivers();
|
||||
return \is_array($aDrivers) && \in_array($this->settings->driver, $aDrivers);
|
||||
}
|
||||
|
||||
public function IsExternal(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function SetEmail(string $sEmail) : bool
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue