use Saved Messages as admin chat if none exists
This commit is contained in:
parent
becc27825d
commit
c585e0b9e6
|
|
@ -29,8 +29,8 @@ def get_admin_chat(account: deltachat.Account) -> deltachat.Chat:
|
||||||
try:
|
try:
|
||||||
id = int(account.get_config("ui.admin_chat"))
|
id = int(account.get_config("ui.admin_chat"))
|
||||||
except ValueError:
|
except ValueError:
|
||||||
id = 10
|
id = account.get_self_contact().create_chat().id
|
||||||
return account.get_chat_by_id(int(id))
|
return account.get_chat_by_id(id)
|
||||||
|
|
||||||
|
|
||||||
def add_keywords(msg: deltachat.Message):
|
def add_keywords(msg: deltachat.Message):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue