aboutsummaryrefslogtreecommitdiff
path: root/src/client/event_handler.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/event_handler.rs')
-rw-r--r--src/client/event_handler.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/client/event_handler.rs b/src/client/event_handler.rs
index 32fdaa1..8100532 100644
--- a/src/client/event_handler.rs
+++ b/src/client/event_handler.rs
@@ -230,6 +230,13 @@ pub trait EventHandler {
/// Dispatched when a message is updated.
///
/// Provides the new data of the message.
+ #[cfg(feature = "cache")]
+ fn message_update(&self, _ctx: Context, _old_if_available: Option<Message>, _new: Message) {}
+
+ /// Dispatched when a message is updated.
+ ///
+ /// Provides the new data of the message.
+ #[cfg(not(feature = "cache"))]
fn message_update(&self, _ctx: Context, _new_data: MessageUpdateEvent) {}
fn presence_replace(&self, _ctx: Context, _: Vec<Presence>) {}