Remove IsExternal

Signed-off-by: Akhil <akhil@e.email>
This commit is contained in:
Akhil 2024-09-02 20:28:03 +05:30
parent cdaa4b1434
commit 0c9e4717a3
8 changed files with 1 additions and 25 deletions

View file

@ -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, {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -6,8 +6,6 @@ interface AddressBookInterface
{
public function IsSupported() : bool;
public function IsExternal() : bool;
public function SetEmail(string $sEmail) : bool;
public function Sync() : bool;

View file

@ -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
{