Commit Graph

278 Commits

Author SHA1 Message Date
Anton Danchenko 3d86e646be
added more atomic tests
Signed-off-by: Anton Danchenko <ant.danchenko@gmail.com>
2018-07-05 00:05:37 +03:00
Andrey Shovkoplyas ee317c4aeb
Wrong number of collectibles in the list and they are mixed up [#4904]
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2018-07-03 18:31:18 +03:00
Andrea Maria Piana b34744133b
[fixes #4745] Don't query mailserver on restored account
When creating a new account / recovery we don't poll the mailserver anymore for historic messages, which solves the immediate issue of fetching only received messages

Handle messages sent from a different device in public chat / restore history. The message will be added, shown correctly as sent by the user, and the status will be set as sent ( need to check for seen race condition, as messages will now be added twice). This means that multidevice should now work for public chats.

Move contact updates to discovery topic. This is necessary as there is a pre-existing bug whereby contact updates would not work anymore after wallet recovery, as the code relies on the initial contact request being stored on the mailserver, which we cannot guarantee (we only pull 7 days of data). Not pulling history anymore exacerbate the problems but does not introduce it.
To make sure that contact updates will work after wallet recovery, we also need to consider a ContactUpdate in the same way we consider a ContactRequest (the other peer has no idea that the user has recovered the wallet). This does not change any behaviour in terms of obscurity/security as ContactRequest are automatically processed (in both case the contact will be set as pending?, not as accepted)
At this stage ContactRequest, ContactRequestConfirmed, ContactUpdate have all the same logic, i.e. update the contact information, leave the pending flag alone.

Only 1 day of history is fetched for newly joined chats, if catching up 7 days is the cap as before.

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2018-07-03 17:21:59 +02:00
yevh-berdnyk 13c8cbf253
Fix for profile and chats tests
Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
2018-07-03 14:41:40 +02:00
Anton Danchenko f4c156c3f7
added atomic transaction tests
Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
2018-07-03 12:30:47 +02:00
Andrea Maria Piana 42509e8fb6
Dont query mailserver when from is greater than to
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2018-07-02 12:21:43 +02:00
yevh-berdnyk 0cef5041de
Added atomic tests for account management
Signed-off-by: Anton Danchenko <ant.danchenko@gmail.com>
2018-06-30 19:51:54 +03:00
yevh-berdnyk 2817d00720
Added atomic tests for chats
Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
2018-06-29 14:58:07 +02:00
cammellos c4c5c19a77
[Part of #4944] add deep/universal link ios and use status-im://
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2018-06-29 14:54:05 +02:00
Andrea Maria Piana a7fc05fcd3
Add support for browse dapps
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2018-06-28 14:18:07 +02:00
Andrea Maria Piana b17d9bab37
Add universal links for android
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2018-06-27 22:45:57 +02:00
yevh-berdnyk d276d576a6
Increased time range for message sending progress bar
Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
2018-06-26 18:26:35 +02:00
yevh-berdnyk d12c05d6f7
Fix for e2e tests
Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
2018-06-22 12:18:07 +02:00
yevh-berdnyk 8bf083cf88
Added atomic tests for chats and sigh in
Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
2018-06-21 20:08:54 +02:00
Goran Jovic 32bbf4e533
feature #3233 #4095 and #3234 - send and request tokens in chat and wallet 2018-06-20 19:04:55 +03:00
Andrea Maria Piana ef0fa75ad4
Handle empty/invalid keys
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2018-06-19 20:15:16 +02:00
Andrea Maria Piana a313557694
Cap maximum number of days requested to mailserver
Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
2018-06-19 20:13:19 +02:00
Dmitry Novotochinov 00c5c630f4
Prevent send button spamming in public chats 2018-06-19 11:35:02 +03:00
Anton Danchenko c1120119b2
e2e tests aligned with new commands design
Signed-off-by: Anton Danchenko <ant.danchenko@gmail.com>
2018-06-18 16:22:16 +03:00
Andrea Maria Piana 5a08383bde
Check minimum amount
Use string for inputs

validate gas is not 0

Handle signed/unsigned transactions
2018-06-15 18:32:26 +03:00
janherich be113ab8a4
Unit tests for mark seen functionality 2018-06-15 13:57:59 +02:00
yevh-berdnyk 49bc773037
Fixed accept_agreements method
Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
2018-06-14 20:37:19 +02:00
yevh-berdnyk f81f3e0d05
Added message reliability offline 1-1 chat and push notifications tests
Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
2018-06-14 19:42:18 +02:00
Andrea Maria Piana 2d54c3e2cc
Select random ms until users explicitictly choose one
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2018-06-14 15:02:15 +02:00
yevh-berdnyk 8d278f3d7d
Fixed passphrase input
Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
2018-06-13 17:21:03 +02:00
Andrea Maria Piana 027b558c2d
update requirements.txt with compatible dependencies
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2018-06-13 13:45:11 +02:00
Andrea Maria Piana 34174cd539
Validate rpc-url when creating a custom network
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2018-06-13 13:42:00 +02:00
Andrea Maria Piana c66c457bbb
Default to value if key is nil
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2018-06-13 13:39:04 +02:00
janherich 535ae6b481
Fix messages from multiple chats problem 2018-06-11 18:30:10 +02:00
janherich 0ad15a79d6
Ensure valid timestamp for all messages 2018-06-11 17:44:01 +02:00
janherich 4ba78de407
Faster seen marking
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
2018-06-11 12:16:42 +02:00
Julien Eluard 952b01e9e1
[#1228] Only enable Next button when passphrase is valid
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
2018-06-11 11:56:03 +02:00
yevh-berdnyk 69610e41ad
Added test for verification tokens data using api.ethplorer.io
Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
2018-06-08 16:15:21 +02:00
Andrea Maria Piana 00cd7c8578
Dont show add-to-contacts if dapp
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2018-06-08 15:07:02 +02:00
yevh-berdnyk 8f1610527b
Fixed e2e tests
Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
2018-06-08 13:08:05 +02:00
Lukasz Fryc f06f4d7a46
Rerun tests when Connection reset by peer happened
Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
2018-06-07 17:26:10 +02:00
Andrea Maria Piana 608c64e88d
Dont run receive-whisper-messages if the user is logged out
This handles a bug whereby we'd run receive-whisper-messages
when the user is logged out.

I could not replicate locally, but a few issues are apparent from
just inspecting the code:

1) there are some race-conditions on logout as we don't wait for all
the filters to be removed. Changing this behaviour is non trivial and
not sure if we can actually handle this completely
(status-go-has-a-message->remove-filter->logout->status-go-deliver-message).
2) no error handling is made in receive-whisper-messages.

This PR defensively handles both cases.

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2018-06-07 14:16:35 +02:00
Andrea Maria Piana fc5cd95b9c
Add border to profile picture & style chat icon
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2018-06-07 13:50:35 +02:00
yevh-berdnyk 5b3aeccd8f
Added chat_name parameter for public chat in message reliability
Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
2018-06-06 15:10:24 +02:00
Anton Danchenko b38dd8f013
transaction verification is fixed
Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
2018-06-04 16:06:26 +02:00
Andrea Maria Piana 75d1c04412
Allow for different password on different mailservers
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2018-06-04 14:28:43 +02:00
Anton Danchenko 64f965c392
added test 'sign message in dapp', increased time for validation of a transaction
Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
2018-06-04 12:43:23 +02:00
yevh-berdnyk 65fa9e5741
Fixed login in e2e tests
Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
2018-06-01 20:12:51 +02:00
Andrea Maria Piana 49592f3a50
Allow editing/deleting custom bootnodes
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2018-06-01 18:28:10 +02:00
yevh-berdnyk 19ff402b4b
Updated message reliability test report
Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
2018-06-01 17:52:14 +02:00
Andrea Maria Piana 9058c54933
Allow scanning qr codes for custom bootnodes
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2018-06-01 13:57:21 +02:00
yevh-berdnyk b345b4a79a
Added 1-1, public and offline public chat tests
Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
2018-06-01 12:52:40 +02:00
Andrea Maria Piana 7ef3a5a5da
Delete mailservers
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2018-06-01 11:23:05 +02:00
Andrey Shovkoplyas 83afbd515a
show onboarding for transaction from chat [#4456] 2018-06-01 07:17:49 +03:00
Anton Danchenko d8c8608419
test 'delete 1to1 chat' has been reworked in order to decrease execution time
Signed-off-by: Anton Danchenko <ant.danchenko@gmail.com>
2018-05-31 16:30:08 +03:00