Stream ntfy notifications to app clients over /connect
Record every notification published to ntfy (run outbox, stage notify hooks, chat question/approval/reply) in a persisted app_notifications outbox and stream it to subscribe_notifications clients with an after cursor; clear_notifications and ack_attention clear across devices, as do runs leaving waiting, deleted runs and answered chat questions. Add the notify.ntfy_enabled setting (default on) to stop only the ntfy publish.
This commit is contained in:
@@ -45,7 +45,7 @@ func notificationSettingsRoundTrip(t *testing.T, ctx context.Context, store *pip
|
||||
|
||||
func wantSettings(t *testing.T, reply protocol.Message, want protocol.NotificationSettings) {
|
||||
t.Helper()
|
||||
if reply.Type != protocol.NotificationSettingsReply || len(reply.NotificationSettings) != 3 {
|
||||
if reply.Type != protocol.NotificationSettingsReply || len(reply.NotificationSettings) != len(protocol.NotificationSettingKeys) {
|
||||
t.Fatalf("reply = %+v", reply)
|
||||
}
|
||||
for key, value := range want.Map() {
|
||||
|
||||
Reference in New Issue
Block a user