SuPP
SuPP
NNovu
Created by SuPP on 10/6/2023 in #💬│support
novu/headless how to destroy session?
for init Novu session we use
headlessService = new HeadlessService({
applicationIdentifier: import.meta.env.VITE_NOVU_APP_ID,
backendUrl: import.meta.env.VITE_NOVU_BACKEND_URL,
socketUrl: import.meta.env.VITE_NOVU_SOCKET_URL,
subscriberId: authUser.uuid,
});

await headlessService.initializeSession(...)
headlessService = new HeadlessService({
applicationIdentifier: import.meta.env.VITE_NOVU_APP_ID,
backendUrl: import.meta.env.VITE_NOVU_BACKEND_URL,
socketUrl: import.meta.env.VITE_NOVU_SOCKET_URL,
subscriberId: authUser.uuid,
});

await headlessService.initializeSession(...)
when user logout we use:
headlessService = null;
headlessService = null;
9 replies
NNovu
Created by SuPP on 10/6/2023 in #💬│support
novu/headless how to destroy session?
We have a problem in such a case: - the first user logs in, performs some actions on the site that should later display a notification to him - logout - the second user logs in and receives notifications from the first user
9 replies
NNovu
Created by SuPP on 9/24/2023 in #💬│support
Modificate message object
No description
8 replies
NNovu
Created by SuPP on 9/24/2023 in #💬│support
Modificate message object
or what you mean?
8 replies
NNovu
Created by SuPP on 9/24/2023 in #💬│support
Modificate message object
No description
8 replies
NNovu
Created by SuPP on 9/24/2023 in #💬│support
Modificate message object
We know that we can just describe JSON inside content, but perhaps there is a better solution
8 replies
NNovu
Created by SuPP on 9/24/2023 in #💬│support
Modificate message object
We see the solution to this issue as follows: - there is still a content field in the message object, where the message is formed as before - but also in addition, a field with additional variables of the message object will appear in the message object, where there will be a field with an array of users, which is usually available at the stage of message formation
8 replies
NNovu
Created by SuPP on 9/24/2023 in #💬│support
Modificate message object
An example of what we want to implement: we use the digest engine and want to get full information about step.events on the frontend.... for example, show the user a message:
Several people liked your post
and add the ability to open additional information about the message where there would be a list of users who have put reactions to the post and for this implementation we need an array of these users who have put a reaction
8 replies
NNovu
Created by SuPP on 9/22/2023 in #💬│support
Custom handlebars helper
okay, thank you very match
14 replies
NNovu
Created by SuPP on 9/22/2023 in #💬│support
Custom handlebars helper
Mike and 1 user wrote you a message Mike and 2 user's wrote you a message Mike and 5 user's wrote you a message but in russian its 3 variants Майк и 1 пользователь написал вам сообщение Майк и 2 пользователя написали вам сообщение Майк и 5 пользователей написали вам сообщение
14 replies
NNovu
Created by SuPP on 9/22/2023 in #💬│support
Custom handlebars helper
1 пользователь 2 пользователя 5 пользователей these are the subtleties of the Russian language and that's why we wanted to manually write our helper, I hope you understand what I mean
14 replies
NNovu
Created by SuPP on 9/22/2023 in #💬│support
Custom handlebars helper
something like - pluralize step.events "пользователь" "пользователя" "пользователей"
14 replies
NNovu
Created by SuPP on 9/22/2023 in #💬│support
Custom handlebars helper
as in the i18n library
14 replies
NNovu
Created by SuPP on 9/22/2023 in #💬│support
Custom handlebars helper
We would like to extend the current plural for the features of the Russian language
14 replies
NNovu
Created by SuPP on 9/22/2023 in #💬│support
Custom handlebars helper
and where is the plural handlebars helper? from older version
14 replies
NNovu
Created by SuPP on 9/20/2023 in #💬│support
Whats the problem with Email Channel?
yeah... i just removed from layout <style type="text/css"></style> and it work thx
10 replies
NNovu
Created by SuPP on 9/20/2023 in #💬│support
Whats the problem with Email Channel?
10 replies
NNovu
Created by SuPP on 9/20/2023 in #💬│support
Whats the problem with Email Channel?
No description
10 replies
NNovu
Created by SuPP on 9/20/2023 in #💬│support
Whats the problem with Email Channel?
10 replies
NNovu
Created by SuPP on 9/20/2023 in #💬│support
Whats the problem with Email Channel?
our email layout:
10 replies