Skip to content
This repository has been archived by the owner on Nov 10, 2020. It is now read-only.

Commit

Permalink
Merge pull request #170 from tahnik/hotfix3
Browse files Browse the repository at this point in the history
Fixed update breaking notif
  • Loading branch information
tahnik authored Aug 17, 2017
2 parents fb585da + 0057ad2 commit 218e7ef
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
27 changes: 13 additions & 14 deletions app/src/main/js/actions/notifs.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,27 +31,26 @@ const fetchNotifs = () => (dispatch, getState) => {
fetching = false;
let noChange = true;

// if (prevNotifs.num_unread === res.data.num_unread) {
const nextnotifItems = res.data.items;
let j = 0;
while (j < nextnotifItems.length) {
const prevItem = prevNotifs.items[j];
const nextItem = nextnotifItems[j];
if (
if (prevNotifs.num_unread === res.data.num_unread) {
const nextnotifItems = res.data.items;
let j = 0;
while (j < nextnotifItems.length) {
const prevItem = prevNotifs.items[j];
const nextItem = nextnotifItems[j];
if (
prevItem.rant_id !== nextItem.rant_id
|| prevItem.read !== nextItem.read
) {
noChange = false;
break;
noChange = false;
break;
}
j += 1;
}
j += 1;
} else {
noChange = false;
}
// } else {
// noChange = false;
// }

if (noChange) {
console.log('returning');
return;
}
const notifs = {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "devrantron",
"version": "1.3.2",
"version": "1.3.3",
"main": "./app/build/app.js",
"description": "An open source cross platform desktop application for devRant",
"scripts": {
Expand Down

0 comments on commit 218e7ef

Please sign in to comment.