Skip to content

Commit

Permalink
Remove received transactions notification from other wallets (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikozet authored and louilinn committed Jun 19, 2023
1 parent a238759 commit 3269024
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/store/activity/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,19 @@ export function checkFinishedActivities({
const lastReceivedTransactionDate = DateTime.fromISO(
getLastReceivedTransaction(),
);

for await (const receivedTransferActivity of activities) {
if (receivedTransferActivity.type === ActivityTypes.HUB_TRANSFER) {
const receivedTransferActivityDate = DateTime.fromSeconds(
receivedTransferActivity.timestamp,
);
if (receivedTransferActivityDate > lastReceivedTransactionDate) {
const sender = receivedTransferActivity?.data?.from;

const sender = receivedTransferActivity?.data?.from;

if (
receivedTransferActivityDate > lastReceivedTransactionDate &&
sender !== safe.currentAccount
) {
let senderName = '';
const senderData = await resolveUsernames([sender], true);
if (sender in senderData) {
Expand Down

0 comments on commit 3269024

Please sign in to comment.