mirror of
https://github.com/chatmail/core.git
synced 2026-05-16 13:26:38 +03:00
Merge pull request #6770 from chatmail/missing-chat-deleted-event
improve jsonrpc python bindings
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import argparse
|
import argparse
|
||||||
|
import os
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
from threading import Thread
|
from threading import Thread
|
||||||
@@ -89,8 +90,8 @@ def _run_cli(
|
|||||||
help="accounts folder (default: current working directory)",
|
help="accounts folder (default: current working directory)",
|
||||||
nargs="?",
|
nargs="?",
|
||||||
)
|
)
|
||||||
parser.add_argument("--email", action="store", help="email address")
|
parser.add_argument("--email", action="store", help="email address", default=os.getenv("DELTACHAT_EMAIL"))
|
||||||
parser.add_argument("--password", action="store", help="password")
|
parser.add_argument("--password", action="store", help="password", default=os.getenv("DELTACHAT_PASSWORD"))
|
||||||
args = parser.parse_args(argv[1:])
|
args = parser.parse_args(argv[1:])
|
||||||
|
|
||||||
with Rpc(accounts_dir=args.accounts_dir, **kwargs) as rpc:
|
with Rpc(accounts_dir=args.accounts_dir, **kwargs) as rpc:
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ class EventType(str, Enum):
|
|||||||
MSG_READ = "MsgRead"
|
MSG_READ = "MsgRead"
|
||||||
MSG_DELETED = "MsgDeleted"
|
MSG_DELETED = "MsgDeleted"
|
||||||
CHAT_MODIFIED = "ChatModified"
|
CHAT_MODIFIED = "ChatModified"
|
||||||
|
CHAT_DELETED = "ChatDeleted"
|
||||||
CHAT_EPHEMERAL_TIMER_MODIFIED = "ChatEphemeralTimerModified"
|
CHAT_EPHEMERAL_TIMER_MODIFIED = "ChatEphemeralTimerModified"
|
||||||
CONTACTS_CHANGED = "ContactsChanged"
|
CONTACTS_CHANGED = "ContactsChanged"
|
||||||
LOCATION_CHANGED = "LocationChanged"
|
LOCATION_CHANGED = "LocationChanged"
|
||||||
|
|||||||
Reference in New Issue
Block a user