Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
1aerostorm committed Dec 2, 2023
1 parent bb667bf commit 93de817
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/components/elements/MarkNotificationRead.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ class MarkNotificationRead extends React.Component {
}

export default connect(null, dispatch => ({
update: (payload) => { dispatch({type: 'UPDATE_NOTIFICOUNTERS', payload}) },
update: (payload) => { console.log('UPD', payload); dispatch({type: 'UPDATE_NOTIFICOUNTERS', payload}) },
}))(MarkNotificationRead);
3 changes: 3 additions & 0 deletions app/utils/NotifyApiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,18 @@ export function markNotificationRead(account, fields) {
}

export async function markNotificationReadWs(account, fields) {
console.log('m1')
if (!notifyWsAvailable()) return null
const xSession = notifySession()
const scopes = fields.join(',')
console.log('m2')
return await new Promise(async (resolve, reject) => {
await notifyWsSend('counters/read', {
account,
'X-Session': xSession,
scopes,
}, (err, res) => {
console.log(err, res)
if (err) {
reject(err)
return
Expand Down
3 changes: 2 additions & 1 deletion config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
"custom_client": "blogs"
},
"notify_service": {
"host": "https://devnotify.golos.app"
"host": "http://89.22.173.104:8805",
"host_ws": "ws://89.22.173.104:8806/ws"
},
"apidex_service": {
"host": "https://api-dex.golos.app"
Expand Down

0 comments on commit 93de817

Please sign in to comment.