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

bug #4917 and #4914 - not showing message in chat after wallet send #4918

Merged
merged 1 commit into from
Jun 25, 2018

Conversation

goranjovic
Copy link
Contributor

fixes #4917
fixes #4914

Summary:

A recent regression caused chat messages to be sent after Wallet Send. Those messages are currently supposed to only be generated after /send command, not directly from Wallet. Since this is not yet supported, what happened instead was that an old payment message would appear in the last chat the user interacted with.

This PR reintroduces the condition that app should only send payment messages if the transaction was initiated from chat.

Steps to test:

see #4917 and #4914

status: ready

@goranjovic goranjovic self-assigned this Jun 23, 2018
@statustestbot
Copy link

97% of end-end tests have passed

Total executed tests: 33
Failed tests: 1
Passed tests: 32

Failed tests (1)

Click to expand
1. test_network_mismatch_for_send_request_commands

Tap on GotItButton
Looking for full text: '0.0623103158'

E selenium.common.exceptions.TimeoutException: Message: 'ProgressBar' is still present on screen, using: 'xpath://*[starts-with(@text,'0.0623103158')]/ancestor::android.view.ViewGroup[@content-desc='chat-item']//android.widget.ProgressBar', during '10' seconds

Device sessions:

Passed tests (32)

Click to expand
1. test_sign_transaction_twice
Device sessions:

2. test_swipe_and_delete_1_1_chat
Device sessions:

3. test_one_to_one_chat_messages
Device sessions:

4. test_copy_and_paste_messages
Device sessions:

5. test_send_transaction_from_daap
Device sessions:

6. test_faucet_console_command
Device sessions:

7. test_username_and_profile_picture_in_chats
Device sessions:

8. test_send_eth_from_wallet_sign_now
Device sessions:

9. test_offline_login
Device sessions:

10. test_open_transaction_on_etherscan
Device sessions:

11. test_send_eth_to_request_from_wallet
Device sessions:

12. test_incorrect_password
Device sessions:

13. test_backup_seed_phrase_and_recover_account
Device sessions:

14. test_offline_messaging_1_1_chat
Device sessions:

15. test_contact_profile_view
Device sessions:

16. test_public_chat
Device sessions:

17. test_public_chat_management
Device sessions:

18. test_network_switch
Device sessions:

19. test_delete_1_1_chat
Device sessions:

20. test_messaging_in_different_networks
Device sessions:

21. test_wallet_error_messages
Device sessions:

22. test_transaction_send_command_one_to_one_chat
Device sessions:

23. test_browse_link_entering_url_in_dapp_view
Device sessions:

24. test_transaction_send_command_wrong_password
Device sessions:

25. test_resend_message_offline
Device sessions:

26. test_send_eth_to_request_in_one_to_one_chat
Device sessions:

27. test_profile_picture
Device sessions:

28. test_switch_users
Device sessions:

29. test_set_up_wallet
Device sessions:

30. test_send_stt_from_wallet_via_enter_recipient_address
Device sessions:

31. test_qr_code_and_its_value
Device sessions:

32. test_sign_message_from_daap
Device sessions:

{:dispatch [:execute-stored-command]}))))))

from-chat?
{:dispatch [:execute-stored-command]}
Copy link
Contributor

Choose a reason for hiding this comment

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

How about some comment to clarify the flow?

@jeluard jeluard force-pushed the bug/wrong-message-wallet-send-4917 branch from 22a095f to ad1a310 Compare June 25, 2018 06:05
@jeluard jeluard merged commit ad1a310 into develop Jun 25, 2018
@rasom rasom deleted the bug/wrong-message-wallet-send-4917 branch June 26, 2018 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Archived in project
7 participants