comparison libervia/backend/bridge/pb.py @ 4148:a8a0fa678ce2

bridge: add `message_update` signal
author Goffi <goffi@goffi.org>
date Wed, 22 Nov 2023 14:26:13 +0100
parents 02f0adc745c6
children
comparison
equal deleted inserted replaced
4147:11f95dfe5b17 4148:a8a0fa678ce2
191 self.send_signal("message_encryption_stopped", to_jid, encryption_data, profile_key) 191 self.send_signal("message_encryption_stopped", to_jid, encryption_data, profile_key)
192 192
193 def message_new(self, uid, timestamp, from_jid, to_jid, message, subject, mess_type, extra, profile): 193 def message_new(self, uid, timestamp, from_jid, to_jid, message, subject, mess_type, extra, profile):
194 self.send_signal("message_new", uid, timestamp, from_jid, to_jid, message, subject, mess_type, extra, profile) 194 self.send_signal("message_new", uid, timestamp, from_jid, to_jid, message, subject, mess_type, extra, profile)
195 195
196 def message_update(self, uid, message_type, message_data, profile):
197 self.send_signal("message_update", uid, message_type, message_data, profile)
198
196 def notification_deleted(self, id, profile): 199 def notification_deleted(self, id, profile):
197 self.send_signal("notification_deleted", id, profile) 200 self.send_signal("notification_deleted", id, profile)
198 201
199 def notification_new(self, id, timestamp, type, body_plain, body_rich, title, requires_action, priority, expire_at, extra, profile): 202 def notification_new(self, id, timestamp, type, body_plain, body_rich, title, requires_action, priority, expire_at, extra, profile):
200 self.send_signal("notification_new", id, timestamp, type, body_plain, body_rich, title, requires_action, priority, expire_at, extra, profile) 203 self.send_signal("notification_new", id, timestamp, type, body_plain, body_rich, title, requires_action, priority, expire_at, extra, profile)