Skip to content
Snippets Groups Projects
Commit f7ac45d1 authored by vjrj's avatar vjrj
Browse files

Fix wrong sent notification

parent 5cb5af5e
No related branches found
No related tags found
No related merge requests found
...@@ -93,7 +93,7 @@ class TransactionsCubit extends HydratedCubit<TransactionsAndBalanceState> { ...@@ -93,7 +93,7 @@ class TransactionsCubit extends HydratedCubit<TransactionsAndBalanceState> {
if (tx.type == TransactionType.sent && if (tx.type == TransactionType.sent &&
newState.latestSentNotification.isBefore(tx.time)) { newState.latestSentNotification.isBefore(tx.time)) {
// Future // Future
final Contact to = await ContactsCache().getContact(tx.from); final Contact to = await ContactsCache().getContact(tx.to);
NotificationController.createNewNotification( NotificationController.createNewNotification(
tx.time.millisecondsSinceEpoch.toString(), tx.time.millisecondsSinceEpoch.toString(),
amount: -tx.amount / 100, amount: -tx.amount / 100,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment