Skip to content

Commit ac10103

Browse files
committed
api!(python): remove remaining broken API for reactions
CFFI for reactions has been previously deprecated and removed, so legacy python bindings using it don't work anymore.
1 parent b696a24 commit ac10103

File tree

2 files changed

+0
-55
lines changed

2 files changed

+0
-55
lines changed

python/src/deltachat/message.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from . import const, props
99
from .capi import ffi, lib
1010
from .cutil import as_dc_charpointer, from_dc_charpointer, from_optional_dc_charpointer
11-
from .reactions import Reactions
1211

1312

1413
class Message:
@@ -164,17 +163,6 @@ def send_status_update(self, json_data: Union[str, dict], description: str) -> b
164163
),
165164
)
166165

167-
def send_reaction(self, reaction: str):
168-
"""Send a reaction to message and return the resulting Message instance."""
169-
msg_id = lib.dc_send_reaction(self.account._dc_context, self.id, as_dc_charpointer(reaction))
170-
if msg_id == 0:
171-
raise ValueError("reaction could not be send")
172-
return Message.from_db(self.account, msg_id)
173-
174-
def get_reactions(self) -> Reactions:
175-
"""Get :class:`deltachat.reactions.Reactions` to the message."""
176-
return Reactions.from_msg(self)
177-
178166
def is_system_message(self):
179167
"""return True if this message is a system/info message."""
180168
return bool(lib.dc_msg_is_info(self._dc_msg))

python/src/deltachat/reactions.py

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)