mirror of
https://github.com/stoatchat/python-client-sdk.git
synced 2026-07-21 01:55:23 -04:00
Message Update called twice #30
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mcbabo on GitHub (Aug 19, 2023).
Describe the bug
If both message update listeners are written.
on_raw_message_updategets also called whenon_message_update"could" handle itTo Reproduce
Expected behavior
Only on_message_update should be called
Library version
0.1.11
@Zomatree commented on GitHub (Aug 19, 2023):
The raw event equivalents always get dispatched regardless of whether the non-raw event could handle it.
If you want to make it exclusive check the cache yourself to see if the message is cached.