-
-
Notifications
You must be signed in to change notification settings - Fork 62
Integration with ADAMANT Notification Service #658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Deployed to https://msg-adamant-pr-658.surge.sh 🚀 |
const { type, payload } = mutation | ||
if (type === 'chat/setFulfilled' && payload) { | ||
getCurrentAccount().then((account) => { | ||
const pk = account.privateKey |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const { privateKey } = account
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's just a syntactic sugar.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The point here is about shortname pk
. It's not clear what does it mean. Better to use privateKey
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we use ts here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As of now none of the plugins are in .ts, that small plugin in js should not be an issue for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't matter. You can import TS in JS, the configuration allow this
data: function () { | ||
return { | ||
passwordDialog: false, | ||
selectedNotificationValue: 0, | ||
notificationItems: [ | ||
{ title: 'No Notifications', value: notificationType['No Notifications'] }, | ||
{ title: 'Background Fetch', value: notificationType['Background Fetch'] }, | ||
{ title: 'Push', value: notificationType['Push'] } | ||
], | ||
showInfo: true, | ||
infoText: this.$t('options.notifications_info') | ||
} | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what purpose for function?
let's move new vars to setup hook
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll do that later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@NikIvv Please don't resolve the conversation until it's fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I did not notice it has been already changed.
New notification service https://github.com/adamant-im/adamant-ns
Created the PR just to trigger the build.