[PR #850] [MERGED] feat: notify admin when whatsapp is unauthenticated #851

Closed
opened 2026-02-26 06:32:21 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/nextcloud/twofactor_gateway/pull/850
Author: @vitormattos
Created: 1/28/2026
Status: Merged
Merged: 1/28/2026
Merged by: @vitormattos

Base: masterHead: feat/notify-admin-when-whatsapp-is-unauthenticated


📝 Commits (9)

  • 04e3047 feat(exception): add AlreadyLoggedInException for WhatsApp pairing flow
  • fe9d141 feat(exception): add ApiConnectionException for WhatsApp API errors
  • 7cdadff feat(events): add WhatsAppAuthenticationErrorEvent for authentication failures
  • c394d91 feat(listener): add NotificationListener to notify admins of WhatsApp auth failures
  • 15db808 feat(notification): add Notifier to format WhatsApp authentication error notifications
  • 76e03d1 feat(app): register WhatsApp event listener and notifier in Application bootstrap
  • b351852 refactor(gateway): replace triple return type with explicit exceptions
  • aa2a22a chore(psalm): update baseline for new exception classes
  • 8dc07d2 chore: remove unused files

📊 Changes

6 files changed (+177 additions, -0 deletions)

View changed files

📝 lib/AppInfo/Application.php (+6 -0)
lib/Events/WhatsAppAuthenticationErrorEvent.php (+15 -0)
lib/Listener/NotificationListener.php (+78 -0)
lib/Notification/Notifier.php (+65 -0)
📝 lib/Provider/Channel/GoWhatsApp/Gateway.php (+5 -0)
📝 tests/psalm-baseline.xml (+8 -0)

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/nextcloud/twofactor_gateway/pull/850 **Author:** [@vitormattos](https://github.com/vitormattos) **Created:** 1/28/2026 **Status:** ✅ Merged **Merged:** 1/28/2026 **Merged by:** [@vitormattos](https://github.com/vitormattos) **Base:** `master` ← **Head:** `feat/notify-admin-when-whatsapp-is-unauthenticated` --- ### 📝 Commits (9) - [`04e3047`](https://github.com/nextcloud/twofactor_gateway/commit/04e3047f673781e7806e2ffc1a255989facc5550) feat(exception): add AlreadyLoggedInException for WhatsApp pairing flow - [`fe9d141`](https://github.com/nextcloud/twofactor_gateway/commit/fe9d141bf9b3fc48ef8716b2fe4a8116cb248a1e) feat(exception): add ApiConnectionException for WhatsApp API errors - [`7cdadff`](https://github.com/nextcloud/twofactor_gateway/commit/7cdadff14522404d50c51db60e7ab5e3b612e46b) feat(events): add WhatsAppAuthenticationErrorEvent for authentication failures - [`c394d91`](https://github.com/nextcloud/twofactor_gateway/commit/c394d91b3fa159bf3cb3178fb8e79ae620a57cf2) feat(listener): add NotificationListener to notify admins of WhatsApp auth failures - [`15db808`](https://github.com/nextcloud/twofactor_gateway/commit/15db80846e94f494cae1bbb59730ec45791fbdb5) feat(notification): add Notifier to format WhatsApp authentication error notifications - [`76e03d1`](https://github.com/nextcloud/twofactor_gateway/commit/76e03d14c20d08933386ade28b30a6ba371ba281) feat(app): register WhatsApp event listener and notifier in Application bootstrap - [`b351852`](https://github.com/nextcloud/twofactor_gateway/commit/b351852c66e05986cce36405762066bc1ea0cefb) refactor(gateway): replace triple return type with explicit exceptions - [`aa2a22a`](https://github.com/nextcloud/twofactor_gateway/commit/aa2a22a3b4234a5f135205a8447bfec3749f03f8) chore(psalm): update baseline for new exception classes - [`8dc07d2`](https://github.com/nextcloud/twofactor_gateway/commit/8dc07d2ef25e90d53a667650d7718176dffd96c1) chore: remove unused files ### 📊 Changes **6 files changed** (+177 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `lib/AppInfo/Application.php` (+6 -0) ➕ `lib/Events/WhatsAppAuthenticationErrorEvent.php` (+15 -0) ➕ `lib/Listener/NotificationListener.php` (+78 -0) ➕ `lib/Notification/Notifier.php` (+65 -0) 📝 `lib/Provider/Channel/GoWhatsApp/Gateway.php` (+5 -0) 📝 `tests/psalm-baseline.xml` (+8 -0) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 06:32:21 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/twofactor_gateway-nextcloud#851
No description provided.