Skip to content

Commit 72bd9d0

Browse files
committed
adapt python ChatType enum constant
1 parent f8cd508 commit 72bd9d0

File tree

1 file changed

+6
-8
lines changed
  • deltachat-rpc-client/src/deltachat_rpc_client

1 file changed

+6
-8
lines changed

deltachat-rpc-client/src/deltachat_rpc_client/const.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,19 +91,17 @@ class ChatId(IntEnum):
9191
LAST_SPECIAL = 9
9292

9393

94-
class ChatType(IntEnum):
94+
class ChatType(str, Enum):
9595
"""Chat type."""
9696

97-
UNDEFINED = 0
98-
99-
SINGLE = 100
97+
SINGLE = "Single"
10098
"""1:1 chat, i.e. a direct chat with a single contact"""
10199

102-
GROUP = 120
100+
GROUP = "Group"
103101

104-
MAILINGLIST = 140
102+
MAILINGLIST = "Mailinglist"
105103

106-
OUT_BROADCAST = 160
104+
OUT_BROADCAST = "OutBroadcast"
107105
"""Outgoing broadcast channel, called "Channel" in the UI.
108106
109107
The user can send into this channel,
@@ -115,7 +113,7 @@ class ChatType(IntEnum):
115113
which would make it hard to grep for it.
116114
"""
117115

118-
IN_BROADCAST = 165
116+
IN_BROADCAST = "InBroadcast"
119117
"""Incoming broadcast channel, called "Channel" in the UI.
120118
121119
This channel is read-only,

0 commit comments

Comments
 (0)