Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(dashpay): mock notifications #592

Merged

Conversation

Syn-McJ
Copy link
Member

@Syn-McJ Syn-McJ commented Aug 21, 2023

Issue being fixed or feature implemented

We want to restore the Notifications flow and mock some data.

What was done?

  • Uncommented relevant code
  • Mocked some notifications
  • Fixed some icons
  • Fixed "Join DashPay" header not updating

How Has This Been Tested?

Breaking Changes

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@Syn-McJ Syn-McJ requested a review from tikhop August 21, 2023 11:56
@Syn-McJ Syn-McJ self-assigned this Aug 21, 2023
@@ -22,7 +22,7 @@ NS_ASSUME_NONNULL_BEGIN

@interface DWDPNewIncomingRequestNotificationObject : DWDPNewIncomingRequestObject <DWDPNotificationItem>

- (instancetype)initWithBlockchainIdentity:(DSBlockchainIdentity *)blockchainIdentity NS_UNAVAILABLE;
- (instancetype)initWithBlockchainIdentity:(DSBlockchainIdentity *)blockchainIdentity; // if !MOCK_DASHPAY NS_UNAVAILABLE;
Copy link
Member Author

@Syn-McJ Syn-McJ Aug 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's difficult to create a valid DSFriendRequestEntity, so this method is the easiest way to mock a notification.
When the Platform is restored, we will search and clean up all of the MOCK_DASHPAY-related changes.

Copy link
Collaborator

@tikhop tikhop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@Syn-McJ Syn-McJ merged commit 8176f4d into dashpay:feature/dashpay Aug 28, 2023
1 check passed
@Syn-McJ Syn-McJ deleted the feature/dashpay-notifications branch August 28, 2023 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants