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

Sent transaction from Wallet is shown in Console / Public chats #4914

Closed
yevh-berdnyk opened this issue Jun 22, 2018 · 2 comments · Fixed by #4918
Closed

Sent transaction from Wallet is shown in Console / Public chats #4914

yevh-berdnyk opened this issue Jun 22, 2018 · 2 comments · Fixed by #4918
Assignees
Milestone

Comments

@yevh-berdnyk
Copy link
Contributor

yevh-berdnyk commented Jun 22, 2018

Description

Type: Bug

Summary: Message about sent funds is shown in the chat that is placed as the very first element on Home screen. Means:

  • if Transaction sender has public chat as the place where he sent the message prior to sent Transaction from wallet (so public chat at the top of list on Home screen) -> /send message transaction will be shown in this public chat
  • if Transaction sender has Console as the place where he sent the message prior to sent Transaction from wallet (so Console at the top of list on Home screen)-> /send message transaction will be shown in Console

Expected behavior

Message with sent transaction is not shown in any chat. Recipient receives sent tokens.

Actual behavior

Transaction sent from Wallet that is reflected in public chat:

screen shot 2018-06-22 at 19 59 54

Message with sent transaction is shown in Status Console. Recipient doesn't receive tokens
image

Reproduction #1 (when /send message shown in Console)

  • Open Status
  • Create an account
  • Add a contact
  • Navigate to profile and switch on development mode (under Advanced button)
  • Switch network to Ropsten with upstream RPC
  • After login request /faucet in Status Console (Note: at this stage Console is the very first element on Home screen)
  • After receiving funds request STT in the Status Test DApp (Plus button -> Open DApp -> Status Test DApp -> Open -> Assets -> Request STT)
  • Wait for STT to be received
  • Proceed to wallet and set up it
  • Open Manage assets, select Modest Test Token and click Done button
  • Click Send transaction button
  • Select asset -> Modest Test Token
  • Input 1 in amount field - Isufficient funds error is shown
  • Choose recipient -> Contacts -> select a contact
  • Change asset to STT
  • Input 1 in amount field againg as it was cleaned
  • Sign transaction
  • Navigate to the Home view and open Status Console

Reproduction #2 (when send message for TX sent from wallet appears in Public chat)

  1. Open Status on Device1 (iOS) and Device2 (Android)
  2. Create Contact 1 (iOS) and Contact 2 (Android) and request ETH and tokens for them.
  3. Both contacts edded each other in contacts (Contact1 sends contact request to Contact2)
  4. Contact2 sends /request ETH 0.0003 in 1-1 chat to Contact1
  5. Contact1 taps the /request message and sends the requested amount to Contact1 (basically a usual reply to /request ETH message)
  6. Contact1 and Contact2 joins the same unique public chat (e.g. #everythingisok) and exchange messages there
  7. Now, Contact1 (iOS) navigates to Wallet -> Send Transaction screen.
  8. Contact1 sends STT to Contact2 (tap 'Specify recipient -> Contacts -> shoose Contact2 -> Asset -> STT -> Specif amount = 33 -> Advanced -> finaly Sign Tx
  9. Check on both devices whether /send message is present in public chat

Additional Information

  • Status version: 0.9.21 (6108), node a339d7e
  • Operating System: iPhone 8+, iOS 11.3.1, iPhoneX(iOS 11.2.5), Android

TF session for Console case : https://app.testfairy.com/projects/4803590-status/builds/8503790/sessions/4394604944?source=latest-sessions

TF session for Contact1 above from Reproduction 2 from 1:13:10 here: https://app.testfairy.com/projects/4803590-status/builds/8504019/sessions/4394617675/?accessToken=fSARMCXpN2amHCvgr-R-J3vu0bE
TF session when Contact2 above from Reproduction 2 (and Contact1 as well actually) sees transaction in public chat: from 59:50
https://app.testfairy.com/projects/4803622-status/builds/8504010/sessions/4394618703/?accessToken=S9L3d8I-bkz37QWkjC9OlsllVJU

@Serhy
Copy link
Contributor

Serhy commented Jun 22, 2018

I reproduced it by TX of the token sent from Wallet reflected in as /send message in public chat.

  1. Open Status on Device1 (iOS) and Device2 (Android)
  2. Create Contact 1 (iOS) and Contact 2 (Android) and request ETH and tokens for them.
  3. Both contacts edded each other in contacts (Contact1 sends contact request to Contact2)
  4. Contact2 sends /request ETH 0.0003 in 1-1 chat to Contact1
  5. Contact1 taps the /request message and sends the requested amount to Contact1 (basically a usual reply to /request ETH message)
  6. Contact1 and Contact2 joins the same unique public chat (e.g. #everythingisok) and exchange messages there
  7. Now, Contact1 (iOS) navigates to Wallet -> Send Transaction screen.
  8. Contact1 sends STT to Contact2 (tap 'Specify recipient -> Contacts -> shoose Contact2 -> Asset -> STT -> Specif amount = 33 -> Advanced -> finaly Sign Tx
  9. Check on both devices whether /send message is present in public chat

TF session for Contact1 above from 1:13:10 here: https://app.testfairy.com/projects/4803590-status/builds/8504019/sessions/4394617675/?accessToken=fSARMCXpN2amHCvgr-R-J3vu0bE
TF session when Contact2 (and Contact1 as well actually) sees transaction in public chat: from 59:50
https://app.testfairy.com/projects/4803622-status/builds/8504010/sessions/4394618703/?accessToken=S9L3d8I-bkz37QWkjC9OlsllVJU

@Serhy Serhy changed the title Sent transaction is shown in Status Console on iOS Sent transaction from Wallet is shown in Console / Public chats Jun 22, 2018
@cammellos
Copy link
Contributor

At a first sight, seems like the issue might be in get-current-chat-id being mistakenly used (it would be set to the last chat you joined)

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 a pull request may close this issue.

5 participants