Add zap notify functionality

This commit is contained in:
Djuri 2024-08-24 16:27:55 +03:00
parent 99e622eeef
commit e39a0ccc14
13 changed files with 506 additions and 78 deletions

View file

@ -72,12 +72,13 @@ void setup()
setupTasks();
setupTimers();
if (preferences.getBool("useNostr", DEFAULT_USE_NOSTR))
if (preferences.getBool("useNostr", DEFAULT_USE_NOSTR) || preferences.getBool("nostrZapNotify", DEFAULT_ZAP_NOTIFY_ENABLED))
{
setupNostrNotify();
setupNostrTask();
}
else
if (!preferences.getBool("useNostr", DEFAULT_USE_NOSTR))
{
xTaskCreate(setupWebsocketClients, "setupWebsocketClients", 8192, NULL,
tskIDLE_PRIORITY, NULL);