mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 15:36:30 +03:00
solve review comments
This commit is contained in:
@@ -12,9 +12,7 @@ if TYPE_CHECKING:
|
|||||||
|
|
||||||
|
|
||||||
class Account:
|
class Account:
|
||||||
"""Each account is tied to a sqlite database file which is fully managed
|
"""Delta Chat account."""
|
||||||
by the underlying deltachat core.
|
|
||||||
"""
|
|
||||||
|
|
||||||
def __init__(self, manager: "DeltaChat", account_id: int) -> None:
|
def __init__(self, manager: "DeltaChat", account_id: int) -> None:
|
||||||
self.manager = manager
|
self.manager = manager
|
||||||
@@ -88,7 +86,7 @@ class Account:
|
|||||||
return await self.get_config("selfavatar")
|
return await self.get_config("selfavatar")
|
||||||
|
|
||||||
async def configure(self) -> None:
|
async def configure(self) -> None:
|
||||||
"""Start configuration process."""
|
"""Configure an account."""
|
||||||
await self._rpc.configure(self.id)
|
await self._rpc.configure(self.id)
|
||||||
|
|
||||||
async def create_contact(
|
async def create_contact(
|
||||||
@@ -102,6 +100,7 @@ class Account:
|
|||||||
name is updated if specified.
|
name is updated if specified.
|
||||||
|
|
||||||
:param obj: email-address or contact id.
|
:param obj: email-address or contact id.
|
||||||
|
:param name: (optional) display name for this contact.
|
||||||
"""
|
"""
|
||||||
if isinstance(obj, int):
|
if isinstance(obj, int):
|
||||||
obj = Contact(self, obj)
|
obj = Contact(self, obj)
|
||||||
|
|||||||
Reference in New Issue
Block a user