Mercurial > libervia-backend
diff src/plugins/plugin_xep_0085.py @ 663:8004c7d4aba7
core: Deferred in onMessage.
onMessage now use a deferred which is passed to MessageReceived trigger through the post_treat parameter. This can be used by plugins to add deferred in the callback chain.
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 31 Oct 2013 17:18:04 +0100 |
parents | 4f747d7fde8c |
children | 0c84fb112d70 |
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0085.py Thu Oct 31 17:14:15 2013 +0100 +++ b/src/plugins/plugin_xep_0085.py Thu Oct 31 17:18:04 2013 +0100 @@ -134,7 +134,7 @@ if (category, name) == (PARAM_KEY, PARAM_NAME): self.updateEntityData("@ALL@", True if value == "true" else "@NONE@", profile) - def messageReceivedTrigger(self, message, profile): + def messageReceivedTrigger(self, message, post_treat, profile): """ Update the entity cache when we receive a message with body. Check for a check state in the incoming message and broadcast signal.