diff src/active.js.luan @ 110:d2637760cd00

better notification
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 15 Sep 2025 13:29:10 -0600
parents 62d6725b4db0
children
line wrap: on
line diff
--- a/src/active.js.luan	Sun Sep 14 15:58:52 2025 -0600
+++ b/src/active.js.luan	Mon Sep 15 13:29:10 2025 -0600
@@ -4,7 +4,7 @@
 local User = require "site:/lib/User.luan"
 local current_user = User.current or error()
 local Notify = require "site:/lib/Notify.luan"
-local remove_notify = Notify.remove or error()
+local notify_active = Notify.active or error()
 local Chat = require "site:/lib/Chat.luan"
 local get_chat_by_id = Chat.get_by_id or error()
 local Logging = require "luan:logging/Logging.luan"
@@ -21,7 +21,7 @@
 		logger.warn("no user")
 		return
 	end
-	remove_notify(user)
+	notify_active(user)
 	local chat = Http.request.parameters.chat
 	if chat ~= nil then
 		chat = get_chat_by_id(chat) or error()