Skip to content

Commit

Permalink
change withPayments filter to withoutDirectTransfers according to AIP-14
Browse files Browse the repository at this point in the history
  • Loading branch information
zyuhel committed May 10, 2019
1 parent 4fb807f commit 5417c90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/chatrooms.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,10 @@ __private.listMessages = function (filter, cb) {
} else {
where.push('NOT( "c_type" = 3) ');
}
if (filter.withPayments) {
where.push(`("t_type" = ${transactionTypes.CHAT_MESSAGE} OR "t_type" = ${transactionTypes.SEND})`);
} else {
if (filter.withoutDirectTransfers) {
where.push('"t_type" = ' + transactionTypes.CHAT_MESSAGE);
} else {
where.push(`("t_type" = ${transactionTypes.CHAT_MESSAGE} OR "t_type" = ${transactionTypes.SEND})`);
}

if (filter.senderId) {
Expand Down

0 comments on commit 5417c90

Please sign in to comment.