From 883abc49ac800e79c9c1a634cf455ce979382a99 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Sun, 26 Aug 2018 21:53:56 -0600 Subject: [PATCH] push-notification: Fix initializing push notification mailbox triggers None of the mailbox triggers were working, since the transaction was not being correctly initialized. --- src/plugins/push-notification/push-notification-plugin.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/push-notification/push-notification-plugin.c b/src/plugins/push-notification/push-notification-plugin.c index 067cb7e058..067d9a9a07 100644 --- a/src/plugins/push-notification/push-notification-plugin.c +++ b/src/plugins/push-notification/push-notification-plugin.c @@ -124,6 +124,7 @@ static void push_notification_mailbox_create(struct mailbox *box) struct push_notification_txn *ptxn; ptxn = push_notification_transaction_create(box, NULL); + push_notification_transaction_init(ptxn); push_notification_trigger_mbox_create(ptxn, box, NULL); push_notification_transaction_commit(ptxn, NULL); } @@ -134,6 +135,7 @@ static void push_notification_mailbox_delete(void *txn ATTR_UNUSED, struct push_notification_txn *ptxn; ptxn = push_notification_transaction_create(box, NULL); + push_notification_transaction_init(ptxn); push_notification_trigger_mbox_delete(ptxn, box, NULL); push_notification_transaction_commit(ptxn, NULL); } @@ -144,6 +146,7 @@ static void push_notification_mailbox_rename(struct mailbox *src, struct push_notification_txn *ptxn; ptxn = push_notification_transaction_create(dest, NULL); + push_notification_transaction_init(ptxn); push_notification_trigger_mbox_rename(ptxn, src, dest, NULL); push_notification_transaction_commit(ptxn, NULL); } @@ -154,6 +157,7 @@ static void push_notification_mailbox_subscribe(struct mailbox *box, struct push_notification_txn *ptxn; ptxn = push_notification_transaction_create(box, NULL); + push_notification_transaction_init(ptxn); push_notification_trigger_mbox_subscribe(ptxn, box, subscribed, NULL); push_notification_transaction_commit(ptxn, NULL); } -- 2.47.3