fix notification
This commit is contained in:
parent
bddfa5c4d9
commit
42dd516b60
1 changed files with 8 additions and 2 deletions
|
|
@ -7,6 +7,7 @@ angular.module('copayApp.services').factory('txStatus', function($modal, lodash,
|
|||
var fc = profileService.focusedClient;
|
||||
var status = txp.status;
|
||||
var type;
|
||||
var INMEDIATE_SECS = 10;
|
||||
|
||||
if (status == 'broadcasted') {
|
||||
type = 'broadcasted';
|
||||
|
|
@ -17,10 +18,15 @@ angular.module('copayApp.services').factory('txStatus', function($modal, lodash,
|
|||
copayerId: fc.credentials.copayerId
|
||||
});
|
||||
|
||||
if (!action || (action.type == 'accept' && n == 1)) {
|
||||
if (!action) {
|
||||
type = 'created';
|
||||
} else if (action.type == 'accept') {
|
||||
type = 'accepted';
|
||||
// created and accepted at the same time?
|
||||
if ( n == 1 && action.createdOn - txp.createdOn < INMEDIATE_SECS ) {
|
||||
type = 'created';
|
||||
} else {
|
||||
type = 'accepted';
|
||||
}
|
||||
} else if (action.type == 'reject') {
|
||||
type = 'rejected';
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue