Skip to content

Commit

Permalink
fix errors with not returning transfers
Browse files Browse the repository at this point in the history
  • Loading branch information
zyuhel committed May 14, 2019
1 parent 5417c90 commit 3f4c054
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/chatrooms.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ __private.listChats = function (filter, cb) {
} else {
where.push(`("t_type" = ${transactionTypes.CHAT_MESSAGE} OR "t_type" = ${transactionTypes.SEND})`);
}
where.push('NOT( "c_type" = 3) ');
where.push('(NOT("c_type" = 3) OR c_type IS NULL) ');
if (filter.senderId) {
where.push('"t_senderId" = ${name}');
params.name = filter.senderId;
Expand Down Expand Up @@ -162,7 +162,7 @@ __private.listMessages = function (filter, cb) {
where.push('"c_type" = ${type}');
params.type = filter.type;
} else {
where.push('NOT( "c_type" = 3) ');
where.push('(NOT("c_type" = 3) OR c_type IS NULL) ');
}
if (filter.withoutDirectTransfers) {
where.push('"t_type" = ' + transactionTypes.CHAT_MESSAGE);
Expand Down

0 comments on commit 3f4c054

Please sign in to comment.