Commit Graph

3654 Commits

Author SHA1 Message Date
Andrey Shovkoplyas 3da0a0dd4f
fix stickers alignment
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-11-06 13:18:32 +01:00
William Mruzek ed0c16b33b
Increase number on 'unread' messages indicator to +99
Signed-off-by: yenda <eric@status.im>
2019-11-06 11:04:08 +01:00
Andrea Maria Piana 1c63c782a4
Dont use network info but only rely on peers count for mailservers
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-11-05 11:50:54 +01:00
Roman Volosovskyi 76be2c279f
[#9268] fix Multiaccount is currently empty on login 2019-11-05 07:20:09 +02:00
Roman Volosovskyi 02ce0782b1
[#9061] fix fetching balances for keycard acc 2019-11-04 16:23:37 +02:00
Andrea Maria Piana 5eb314db58
Use staging fleet and upgrade status-go
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-11-04 15:07:12 +01:00
Andrea Maria Piana c69863cda2
Fix message ordering and improve performance rec. messages
This commit does a few things:

==== Ordering of messages ====

Change the ordering of messages from a mixture of timestamp/clock-value to use
only clock-value.

Datemarks are now not used for sorting anymore, which means that the
order of messages is always causally related (not the case before, as we
were breaking this property by sorting by datemark), but datemark
calculation is unreliable (a reply to a message might have a timestamp <
then the message that is replied to).
So for timestamp calculation we
naively group them ignoring "out-of-order timestamp" messages, although
there's much to improve.
It fixes an issue whereby the user would change their time and the
message will be displayed in the past, although it is still possible to
craft a message with a lower clock value and order it in the past
(there's no way we can prevent this to some extent, but there are ways
to mitigate, but outside the scope of this PR).

==== Performance of receiving messages ====

The app would freeze on pulling messages from a mailserver (100 or so).
This is due to the JS Thread being hogged by CPU calculation, coupled
with the fact that we always tried to process messages all in one go.

This strategy can't scale, and given x is big enough (200,300,1000) the
UI will freeze.

Instead, each message is now processed separately, and we leave a gap
between processing each message for the UI to respond to user input
(otherwise the app freezes again).
Pulling messages will be longer overall, but the app will be usuable
while this happen (albeit it might slow down).
Other strategies are possible (calculate off-db and do a big swap,
avoiding many re-renders etc), but this is the reccommended strategy by
re-frame author (Solving the CPU Hog problem), so sounds like a safe
base point.

The underlying data structure for holding messages was also changed, we
used an immutable Red and Black Tree, same as a sorted map for clojure, but we use
a js library as is twice as performing then clojure sorted map.

We also don't sort messages again each time we receive them O(nlogn), but we
insert them in order O(logn).

Other data structures considered but discarded:
1) Plain vector, but performance prepending/insertion in the middle
(both O(n)) were not great, as not really suited for these operations.

2) Linked list, appealing as append/prepend is O(1), while insertion is
O(n). This is probably acceptable as messages tend to come in order
(from the db, so adding N messages is O(n)), or the network (most of
them prepends, or close to the head), while mailserver would not follow this path.
An implementation of a linked list was built, which performed roughtly the
same as a clojure sorted-map (although faster append/prepend), but not
worth the complexity of having our own implementation.

3) Clojure sorted-map, probably the most versatile, performance were
acceptable, but nowhere near the javascript implementation we decided on

4) Priority map, much slower than a sorted map (twice as slow)

5) Mutable sorted map, js implementation, (bintrees), not explored this very much, but from
just a quick benchmark, performance were much worse that clojure
immutable sorted map

Given that each message is now processed separately, saving the chat /
messages is also debounced to avoid spamming status-go with network
requests. This is a temporary measure for now until that's done directly
in status-go, without having to ping-pong with status-react.

Next steps performance wise is to move stuff to status-go, parsing of
transit, validation, which is heavy, at which point we can re-consider
performance and how to handle messages.

Fixes also an issue with the last message in the chat, we were using the
last message in the chat list, which might not necessarely be the last
message the chat has seen, in case messages were not loaded and a more
recent message is the database (say you fetch historical messages for
1-to-1 A, you don't have any messages in 1-to-1 chat B loaded, you receive an
historical message for chat B, it sets it as last message).

Also use clj beans instead of js->clj for type conversion

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-11-01 23:59:26 +01:00
acolytec3 3cc157b0fb
Suppress remove photo option when no profile pic
Signed-off-by: yenda <eric@status.im>
2019-11-01 15:07:51 +01:00
yenda 3528dd809a
fix fleet settings not being saved to node config
Signed-off-by: yenda <eric@status.im>
2019-11-01 11:56:11 +01:00
Roman Volosovskyi f7cc74a29a
fix recovery with mnemonic on keycard 2019-10-31 09:47:23 +02:00
Roman Volosovskyi e80b08c42e
[#9233, #9173] fix some screens
Signed-off-by: yenda <eric@status.im>
2019-10-30 15:17:28 +01:00
tbenr 88dbeead42
fixes #8877
Signed-off-by: yenda <eric@status.im>
2019-10-30 15:13:54 +01:00
yenda 7bb45fdd8f
remove firebase
Signed-off-by: yenda <eric@status.im>
2019-10-29 15:03:58 +01:00
Roman Volosovskyi 0856ae12e0
[#9231] fix flow of seed recovering on keycard 2019-10-28 21:52:11 +02:00
tbenr dfe259f14e
fixes #9205 2019-10-28 19:12:29 +02:00
acolytec3 dc7724f88b
Delete account name if setting recipient manually 2019-10-28 19:10:50 +02:00
acolytec3 33af176246
Fix network status change logic and #8951 2019-10-28 10:21:29 +02:00
Serhy eb00df147d
E2E transaction appears in history
Signed-off-by: Serhy <sergii@status.im>
2019-10-28 10:04:45 +02:00
Andrea Maria Piana 9cd891365a
Use payload & avoid transforming in clojure objects.
This commit includes a few performance fixes:
1) Pass a string payload instead of an hex encoded string, to avoid
unecessary conversion
2) Don't js->clj on messages, as that's fairly expensive and we can get
away without
3) Don't use `pr-str` `read-string`, rather convert to json

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-10-23 15:52:32 +02:00
Andrea Maria Piana 57b1722863
Verify ens names on messages and contact requests
This commits verifies ens names when new messages or contact requests
come through.
A batch of ens names is sent to status-go which will then verifying them
and the result will be passed back in a callback to status-react.

Also temporary skipped test_ens_in_public_chat until we merge the ENS
code (blocked currently by 1.9 upgrade)

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-10-23 12:32:28 +02:00
Roman Volosovskyi 474ff00c7f
[#8650] Tappable "backup seed" notification in wallet
- notification is tappable
- appears only if user has nonzero balance and hasn't backed up seed yet
- Fix e2e test for this change
2019-10-22 18:14:13 +03:00
Andrey Shovkoplyas cbe17cbe02
[#8940] Redesign Back, swipe-to-the-left and hardware device Back buttons to align the behavior
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-10-18 17:27:03 +02:00
Andrey Shovkoplyas 1c51731aea
[#8446] [Multi-Account] Build account settings for individual wallet
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-10-18 12:09:47 +02:00
yenda 7b6dfad702
[fix 8853] fix change of whisper id in ens registration
A user can type in their existing name in the registration flow. Status can
confirm if they own it. After signing a transaction, the user can update the
Whisper ID to their new one.

Instead of using a hardcoded contract for stateofus, the standard `owner`
method is called to find the resolver contract of a ens name.
This allows users to set the pubkey even for ens names that are not
subdomains of stateofus

Signed-off-by: yenda <eric@status.im>
2019-10-16 17:32:07 +02:00
yenda 500d2cc787
fix navigation reset
currently navigation-reset only works properly if you reset to a simple route

this fix allows us to use navigation reset with more complex routes, by
ensuring that the navigation stack is populated properly so that navigate
back doesn't end up emptying the stack.

this is temporary as the proper way to do navigation in general would be
to get rid of view id and navigation-stack entirely, since it is a duplication
of the state of react-navigation

Signed-off-by: yenda <eric@status.im>
2019-10-16 15:02:26 +02:00
Andrea Maria Piana 1314c6e7d7
Disable spinner when generating multiaccount
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-10-16 14:28:17 +02:00
Andrey Shovkoplyas da4d95d85c
drop les
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-10-15 13:55:39 +02:00
acolytec3 2ddfcd4f88
Point network to correct current-network
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-10-15 13:54:59 +02:00
Andrey Shovkoplyas 09be82272a
[#8662] No chats on 'Chats' view if to clear entered search term in 'Search' chat input
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-10-11 13:10:28 +02:00
Andrey Shovkoplyas df098f82f6
[#8977] [Multi-account] Allow user to choose wallet for DApp transactions
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-10-11 11:08:56 +02:00
Vitaliy Vlasov 5fd269fde8
Onboarding UI fixes
Signed-off-by: yenda <eric@status.im>
2019-10-10 21:00:29 +02:00
Andrey Shovkoplyas 6b1c30b44c
[#8997] Error 'Hzb.checkViodeoAuthorizationStatus in not a function' at attempt to scan QR on IOS
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-10-10 17:04:13 +02:00
tbenr ee5040c391
fixes #8657
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-10-10 12:02:09 +02:00
Vitaliy Vlasov 227127f153
Add preserve-input flag to text-input
Signed-off-by: Vitaliy Vlasov <siphiuel@gmail.com>
2019-10-09 17:37:24 +03:00
Andrey Shovkoplyas d2ff665d6e
[#9107] Collectibles (except CryptoKitties) are not loaded (endless spinner) after relogin
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-10-09 15:54:12 +02:00
Andrey Shovkoplyas 92f230ee13
[#9139] Can not purchase sticker pack (too low no sign with password button)
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-10-09 11:40:02 +02:00
Marcus R. Brown 22de1f7490
Fix sticker pack installation buttons
- Fix sticker pack installation buttons
- Add "↓ Free" text and update "Install" text
- Distinguish between owned and free sticker sets
- Rename owned -> owned? in price-badge
- Add tiny-snt icon
- Update the sticker price badge icon and padding

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-10-09 08:25:29 +02:00
Andrey Shovkoplyas 284f9bffed
[#8937] Recent stickers are shown when stickers tab is highlighted
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-10-08 13:27:53 +02:00
Dmitry Novotochinov 7a642c76de
[#8989] hide keycard settings for regular accounts
[#9019] hide Add new account in Wallet for keycard users

[#9023] fix redirect on keycard setup cancel

Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-10-08 14:19:32 +03:00
Dmitry Novotochinov c1c195adbe
[#9025] fix keycard pairings persistence
Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-10-08 11:45:15 +03:00
acolytec3 5ce678eb62
Suppress back-up-seed prompt when already done
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-10-07 12:12:53 +02:00
acolytec3 72867473d0
Add currency conversions for signing sheet
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-10-04 18:13:53 +02:00
Andrea Maria Piana ba34af0dd4
[Fixes #9088] Store eip1581 path and wallet root path, don't store
master key

When creating the account we store as well the path specified in eip1581
https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1581.md ,
`m / 43' / 60' / 1581'`.

The reason for doing so is that eventually we might want to derive an
encryption key from it, which would require the user to re-enter their
seed phrase if we would not store this.

This commit changes the behavior not to store the master key, and
instead store `m /44'/60' /0'/0`, from which wallets are now derived.

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-10-04 12:54:26 +02:00
Andrey Shovkoplyas b3d04bb68c
[#8966] biometric
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-10-04 12:43:32 +02:00
Alex Good 78c57a356b
Fix small UI problems with the compose reply screen
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-10-02 13:21:19 +02:00
Volodymyr Kozieiev ace4b5a161
Desktop works with react-navigation v3
Signed-off-by: Volodymyr Kozieiev <vkjr.sp@gmail.com>
2019-10-02 10:19:37 +03:00
Andrea Maria Piana 42961f3a0e
Add username to quoted message
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-10-01 12:13:36 +02:00
Andrey Shovkoplyas 9d06f01506
[#8934] Only one sticker is shown in "Recently used"
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-09-30 16:15:08 +02:00
Andrey Shovkoplyas 371c66aad1
Remove UUID related code #9048
Signed-off-by: yenda <eric@status.im>
2019-09-30 15:55:55 +02:00
Andrey Shovkoplyas f52b87ef22
[#8945] "null is not an object" error when tap on sticker sent in chat
Signed-off-by: yenda <eric@status.im>
2019-09-30 15:55:12 +02:00
Andrey Shovkoplyas bedb6a841b
keycard seed suggestions
Signed-off-by: yenda <eric@status.im>
2019-09-30 15:37:04 +02:00
Andrey Shovkoplyas 7ddebcb815
[#8973] Mobile data syncing pop-up missing text
Signed-off-by: yenda <eric@status.im>
2019-09-30 15:33:22 +02:00
Andrey Shovkoplyas 6a732570c7
[#9034] Turn off autosuggestion on seedphrase confirmation input
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-09-30 10:38:40 +02:00
Pedro Pombeiro f8d447fa59
Hide Account Export menu item in wallet for v1. Closes #9040
Signed-off-by: yenda <eric@status.im>
2019-09-28 14:00:18 +02:00
Andrea Maria Piana acd7e56d1d
Add gfycat/identicon from status-go
Signed-off-by: yenda <eric@status.im>
2019-09-26 14:12:43 +02:00
yenda c047b588ed
throw errors on dangerous behaviours
- if multiaccount settings are saved on top of an empty map or nil,
this means something went wrong, the state of the app is unstable,
and actually saving will result in loss of data. It should never
happen, but if it does, throw and error and abort.
- sometimes two fxs are merged when they shouldn't, this is caused by
bugs and should never happen, but if it does, throw an error with arguments
for both effects to help localize the error

Signed-off-by: yenda <eric@status.im>
2019-09-25 19:33:43 +02:00
yenda bf6b328996
replace require-macro for defnstyle and defstyle
- renamed the macros def and defn so that they are now used with aliased
namespace `styles/def` and `styles/defn` to force user to use aliased require
instead of require-macro and refer
- this makes sure the cljs file is required which includes the require for
platform ns needed after macroexpension

Signed-off-by: yenda <eric@status.im>
2019-09-25 17:18:26 +02:00
Dmitry Novotochinov 18ce3b0129
[#8968] custom seed phrase popover
Signed-off-by: yenda <eric@status.im>
2019-09-25 09:39:25 +02:00
yenda 3ee52b4fba
hotfix styles.cljs
Signed-off-by: yenda <eric@status.im>
2019-09-24 22:38:41 +02:00
yenda 133800b191
remove wrap-first-time
Signed-off-by: yenda <eric@status.im>
2019-09-24 18:57:15 +02:00
Andrey Shovkoplyas 222c6ac20c
[#8516] Cannot delete dapp from "Recent" 2019-09-24 12:06:53 +02:00
tbenr f7076016d8
fixes #8071
Signed-off-by: yenda <eric@status.im>
2019-09-20 17:54:23 +02:00
yenda 8ccc858d41
fix #9003 Recover deleted translations
replace i18n/message-status-label by regular label to avoid repeating
this issue in the future

recover the following labels:
- status-not-sent-click
- status-not-sent-tap
- status-sent

Signed-off-by: yenda <eric@status.im>
2019-09-20 13:07:11 +02:00
yenda 9a2ba3009d
fix log level config
the log level config for status-go wasn't saved in the node-config
as a result even though the setting looked applied in the UI it wasn't
in the node
2019-09-17 23:31:32 +02:00
Andrea Maria Piana 49d882ba29
Fix bootnodes toggle
Signed-off-by: yenda <eric@status.im>
2019-09-17 23:30:19 +02:00
yenda e87d75039e
remove unused use-status-go-protocol? flag and code
Signed-off-by: yenda <eric@status.im>
2019-09-17 17:10:13 +02:00
yenda 543d28fbc1
remove unused deleteChat rpc method and effects 2019-09-17 17:09:23 +02:00
yenda 47bae76c73
remove group-chat-local-version 2019-09-17 17:09:22 +02:00
yenda ee042bd1c4
10x perf improvement on safe-merge
safe merge was using way too much inefficient code for such an important
function
it is rewritten using a reduce. the performance improvement is 10 times
and should really show up when adding messages
in repl session the new merge was much slower on the error case of merging
fx with common keys but it must never happen in production as it means
the app is broken

status-im.utils.fx> (time (dotimes [x 100] (fast-merge {:a 1 :b 2 :filters/load-filters [{:a 1 :b 2}]} {:c 3 :filters/load-filters [{:d 1 :b x}]})))
"Elapsed time: 19.000000 msecs"
nil
status-im.utils.fx> (time (dotimes [x 100] (safe-merge {:a 1 :b 2 :filters/load-filters [{:a 1 :b 2}]} {:c 3 :filters/load-filters [{:d 1 :b x}]})))
"Elapsed time: 183.000000 msecs"

status-im.utils.fx> (time (dotimes [x 100] (fast-merge {:a 1 :c 2 :filters/load-filters [{:a 1 :b 2}]} {:c 3 :filters/load-filters [{:d 1 :b x}]})))
"Elapsed time: 2224.000000 msecs"
2019-09-17 17:09:22 +02:00
yenda 747dec908e
remove yellowbox warnings for componentWillMount and WillUpdate 2019-09-17 17:09:22 +02:00
yenda e8e78bdec1
require handlers in cljs ns for macroexpension 2019-09-17 17:09:14 +02:00
Dmitry Novotochinov 1df30f7447
handle initialized cards
Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-09-16 11:14:35 +03:00
Dmitry Novotochinov b4ffb5b3ea
[#8939] hide keycard options from ios
Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-09-13 17:42:54 +03:00
bitsikka d472cfcddd
[8978] fix - chat text ending with new-line breaks chat-list layout
Signed-off-by: yenda <eric@status.im>
2019-09-13 14:16:09 +02:00
jiachen 62442d70d5
fix: issue #8823 modify words count row height
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-09-13 12:17:09 +02:00
Pedro Pombeiro 9feb31bd3b
Upgrade react-native to 0.60.5
- Use community net-info, react-native-webview instead of deprecated react-native classes
- Remove react-native-tcp
- Upgrade react-native libs (react-native-camera, react-native-firebase, react-native-mail, react-native-udp, react-native-webview-bridge)
- Do not include `:react-native-android` module explicitly
- Take advantage of RN AutoLinking
- nix: Update Gradle dependencies
2019-09-12 16:13:42 +02:00
yenda 5db0a58ab8
remove unused deps and document the others
Signed-off-by: Pedro Pombeiro <pombeirp@users.noreply.github.com>
2019-09-12 16:12:46 +02:00
yenda f538cfe848
remove web3 dependency 2019-09-12 15:51:57 +02:00
yenda 69819df39a
fix dependencies and remove js-sha3 2019-09-12 15:51:57 +02:00
bitsikka edf896f2e5
[8957] fix - Wallet address can't be copied by tapping on it
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-09-12 11:12:33 +02:00
Andrea Maria Piana e6c5dd6c81
Dont try to use nil as a function
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-09-12 08:52:03 +02:00
bitsikka f981dbb43b
list-item suppliment/fixes
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-09-11 16:49:52 +02:00
Vitaliy Vlasov b215292b23
Preserve text-inputs default value
Signed-off-by: Vitaliy Vlasov <siphiuel@gmail.com>
2019-09-10 13:01:13 +03:00
yenda c3dd950286
remove realm
Signed-off-by: yenda <eric@status.im>
2019-09-09 18:40:15 +02:00
yenda 172038b70d
integrate mailserver-ranges api 2019-09-09 18:39:49 +02:00
Andrey Shovkoplyas 277f9ffda5
fixed fx macro on ios added troubleshooting.md
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-09-09 13:48:25 +02:00
Vitaliy Vlasov 93b8fa01ed
Comment away screens
Signed-off-by: yenda <eric@status.im>
2019-09-06 14:48:31 +02:00
Andrey Shovkoplyas d07c9c6613
fixed :background-color on Android crash
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-09-06 13:33:18 +02:00
Andrey Shovkoplyas b18a044146
ui elements 2019-09-06 12:28:16 +02:00
yenda 6be85f46a5
[fix 8702] hash passwords before sending them to status-go
fix #8702

- use ethereum.utils sha3 function to hash passwords before sending them
to status-go
- some native calls take password as one of their params: they now take
hashed-password (still a string, only relevant for status-react caller)
- some native calls take password within a map of rpc params: it now
needs to be hashed with `ethereum.core/sha3`

Signed-off-by: yenda <eric@status.im>
2019-09-05 18:13:10 +02:00
yenda d312192209
clean up native-module
- remove impl/modules.cljs namespace because it was needlessly redundant
- remove `create-account` unused call
- add documentation for some calls
- only keep `(status)` check for relevant calls that are failing tests
because they are evaluated
2019-09-05 18:09:56 +02:00
yenda dbf8d60f8b
integrate status-go mailserver-topics api
Signed-off-by: yenda <eric@status.im>
2019-09-05 18:08:03 +02:00
yenda 1147466362
integrate status-go mailserver api 2019-09-05 18:07:17 +02:00
bitsikka 843de6aa90
fix profile photo icon - no border in non-identicon photo
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-09-05 14:56:53 +02:00
Pedro Pombeiro 66b982c3fb
Use react-native net-info community package
Signed-off-by: yenda <eric@status.im>
2019-09-05 14:16:28 +02:00
Andrey Shovkoplyas 1475bb6cf6
security #7
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-09-04 16:36:22 +02:00
Andrea Maria Piana e7fa010088
Move gaps to status-go
This commit moves gaps to status-go.

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-09-04 15:53:48 +02:00
yenda ef36ece15b
[fix 8829] fix wrong password behavior on login
fix #8829

Signed-off-by: yenda <eric@status.im>
2019-09-04 13:20:38 +02:00
yenda 6427061bad
[fix #8813] status-go version is shown as N/A
fix #8813

Signed-off-by: yenda <eric@status.im>
2019-09-04 13:18:51 +02:00
bitsikka df66b73054
revert unnecessary :chats/last-message-content subscription
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-09-04 12:24:48 +02:00
Andrey Shovkoplyas d21ea6e8f6
security #4 recovery keyboard
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-09-03 15:34:51 +02:00
yenda 3ef0433d7b
fix red screen on hot reloading
Signed-off-by: yenda <eric@status.im>
2019-09-03 13:17:55 +02:00
yenda 45be9b66db
fix subtitle in list items
arguments were missing in reagent-render args so component wasn't
reacting to changes

Signed-off-by: yenda <eric@status.im>
2019-09-03 13:17:09 +02:00
b-m-f 09c8d858ed
Show group name in group-chat header
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-09-03 11:03:06 +02:00
bitsikka df3473dbef
[7785] fix - Implement the correct list item layout in chats list
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-09-02 17:49:54 +02:00
Andrea Maria Piana 12c08b1398
Use last-message-timestamp in mainchat
We use the timestamp of the last message in the chat preview.
In case there's no message, the old timestamp will be displayed (last
time the chat has been updated).

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-09-02 11:34:04 +02:00
Vitaliy Vlasov aa4bf1f26b
Use :multiaccount instead of :multiaccounts/multiaccounts when looking
through candidate public keys

Signed-off-by: Vitaliy Vlasov <siphiuel@gmail.com>
2019-08-30 19:26:37 +03:00
Pedro Pombeiro 58d310ffce
Remove RAM bundle support 2019-08-30 17:13:35 +02:00
Vitaliy Vlasov dfeec0f39f
Fix empty contact code string errors
Signed-off-by: Vitaliy Vlasov <siphiuel@gmail.com>
2019-08-30 15:46:11 +03:00
Pedro Pombeiro a5907fe0ca
Move from componentWillMount to componentDidMount
Signed-off-by: Pedro Pombeiro <pombeirp@users.noreply.github.com>
2019-08-29 19:19:50 +02:00
Andrey Shovkoplyas ffcba77486
fix android webview svg
Signed-off-by: Pedro Pombeiro <pombeirp@users.noreply.github.com>
2019-08-29 15:54:26 +02:00
Andrey Shovkoplyas 0288d617cb
[#8849] Use node-qrcode instead of react-native-qrcode 2019-08-29 15:53:44 +02:00
Andrey Shovkoplyas d432dc980e
don't use webview 2019-08-29 15:53:44 +02:00
Andrea Maria Piana 3b52a61bdf
validate links before opening
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-08-29 15:14:06 +02:00
bitsikka 3541f636df
[8070] feature - [Profile] My profile screens reorganisation and items design
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-08-29 13:24:10 +03:00
Andrea Maria Piana 58204f935b
upgrade status-go
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-08-29 08:40:57 +02:00
yenda 4e7c7c254b
[fix #8760] multiple accounts created
when tapping save account quickly

Signed-off-by: yenda <eric@status.im>
2019-08-28 16:48:56 +02:00
yenda ab58dcfa36
rename subaccounts -> accounts 2019-08-28 16:46:52 +02:00
yenda 3597978131
[fix #8759] Сan't send funds from added account
- save added account in keystore properly so that it can be used
- still needs a fix in status-go so that it works without having to relogin
2019-08-28 16:46:52 +02:00
yenda b4b93aa3f7
[fix #8802] universal links after login
fix #8802
No redirect from universal links after login
2019-08-28 16:46:52 +02:00
yenda bf50811f25
fix ens registration on ropsten
ropsten is 50STT
also fixed cancellation of transaction
2019-08-28 16:46:52 +02:00
yenda 84c04949aa
save account with accounts_saveAccounts rpc call
so that transaction history starts being fetch without having to relogin
2019-08-28 16:46:52 +02:00
yenda ddefae11b1
use wallet_getTokensBalances to reduce number of rpc calls 2019-08-28 16:46:52 +02:00
yenda b45e7ccafb
cleanup fetching transactions 2019-08-28 16:46:52 +02:00
yenda 7d813149eb
move network-id verification 2019-08-28 11:11:41 +02:00
yenda b28c521b2b
remove semaphores 2019-08-28 11:11:41 +02:00
yenda d4a396bedf
move networks out of multiaccount 2019-08-28 11:11:40 +02:00
yenda d183cfe125
Remove :node/status leftovers 2019-08-28 11:11:40 +02:00
Andrey Shovkoplyas 8e3624e87b
[#8321] Change or remove back button from DApp browser screen
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-08-28 11:59:39 +03:00
Pedro Pombeiro 78be542f0b
Fix hang at startup with release build 2019-08-27 11:41:47 +02:00
Vitaliy Vlasov 4c545cb70d
Add processing indicator when creating multiaccount
Signed-off-by: Vitaliy Vlasov <siphiuel@gmail.com>
2019-08-26 18:55:02 +03:00
Andrea Maria Piana 564090d7e6
upgrade status-protocol-go
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-08-26 12:18:03 +02:00
MajorTomSec 5dbac2b1d9
[Fix 8635] About showed "Version ()" instead of Version 0.14.0 (201908...) on Android
Fixes #8635 by adding VERSION and BUILD_NUMBER files in the correct nix
template and updating bash script in order to prevent it from failing,
due to the git repository being not initialized in the nix environment.

Move scripts/build_no.sh and scripts/gen_build_no.sh to
scripts/version/build_no.sh to prevent Nix from rebuilding when
unrelated scripts are touched.

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-08-26 12:51:50 +03:00
yenda 397b193de2
[fix 8831] error when unblocking first blocked contact
when unlocking first blocked contact before relogin, an error occurs
this is because the first blocked contact is added to a list and you can't
disj an element from a list
this makes sure the first blocked contact is put into a set

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-08-26 11:03:12 +03:00
Andrey Shovkoplyas 0210f413ab
list-item fix
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-08-26 10:59:21 +03:00
yenda 41cf68b6a7
[fix 8786] fix multiaccount recovery and add account
fix #8786

- multiaccount recovery wasn't saving the root key properly
- this resulted in the impossibility to add new accounts in the wallet

Signed-off-by: yenda <eric@status.im>
2019-08-23 13:15:28 +02:00
Pedro Pombeiro cfcbe6e5fb
Remove unused `android/app/react.gradle` and mapview leftovers
Signed-off-by: Pedro Pombeiro <pombeirp@users.noreply.github.com>
2019-08-23 11:59:30 +02:00
yenda f14fd19f2c
[fix 8796] big number error when adding owned ens name
fix #8796

Signed-off-by: yenda <eric@status.im>
2019-08-23 09:52:48 +02:00
Vitaliy Vlasov 697c767a8b
Clear all TextInput refs in on-will-blur event
Signed-off-by: Vitaliy Vlasov <siphiuel@gmail.com>
2019-08-22 19:54:34 +03:00
Andrey Shovkoplyas 2e06dd36da
remove unused resources
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-08-22 18:27:06 +03:00
yenda ff2b24b1c6
cleanup shh/post
Signed-off-by: yenda <eric@status.im>
2019-08-22 14:56:10 +02:00
yenda 75ce7da50c
remove realm chat-transport usages 2019-08-22 14:55:50 +02:00
yenda bd3ff3e96a
remove dead realm usages 2019-08-22 14:55:41 +02:00
Andrey Shovkoplyas 50d64fee65
[#8624] Disable stickers in testnet
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-08-22 14:25:59 +03:00
Vitaliy Vlasov 8c9af1ab51
Fix Android back button issues on intro screens
Signed-off-by: Vitaliy Vlasov <siphiuel@gmail.com>
2019-08-21 18:53:45 +03:00
yenda c75d5b24f6
[fix 8795] remove mainnet is default alert
Signed-off-by: yenda <eric@status.im>
2019-08-21 17:40:50 +02:00
Andrey Shovkoplyas ad0e0663f6
[#8548] No 'Paste' native Android option on longtap in the app input fields (conract-code, wallet recipient address etc)
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-08-21 13:41:59 +03:00
yenda 5cafef6702
remove contact-recovery
contact recovery is now handled by status-go

Signed-off-by: yenda <eric@status.im>
2019-08-21 10:37:46 +02:00
Andrea Maria Piana 79ab816497
Fix serialization of group-chats
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-08-21 09:50:27 +02:00
yenda f2cf42715b
use ethereum address of the default wallet account for ens resolution
Signed-off-by: yenda <eric@status.im>
2019-08-20 17:42:57 +02:00
yenda 1c475e5b1e
replace last remains of web3.js by json-rpc 2019-08-20 17:42:02 +02:00
yenda d61fffb021
remove dev-server and extensions for v1 2019-08-20 17:42:02 +02:00
yenda d7cd2b8a74
integrate status-go accounts 2019-08-20 17:42:02 +02:00
yenda d2f1bbeb16
integrate status-go initKeystore native call
- avoids having to start a node before login
2019-08-20 17:42:02 +02:00
Andrea Maria Piana dcb7415208
Move messages to status-go
This commit does a few things:

1) Move messages to status-go
2) Use message-id computed from status-go
3) Remove old replies

Old message id was used for compatibility of replies with older clients.
Given that v1 is breaking, this is not needed anymore and simplifies
moving messages to status-go. No protocol/data-store change is made, to minimize
changes.

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-08-20 13:25:05 +02:00
Andrey Shovkoplyas b67eda9bc3
[#8729] iOS crashes on personal_sign
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-08-20 14:16:34 +03:00
Andrey Shovkoplyas b0db4c6354
Fiddle
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-08-19 13:22:11 +03:00
bitsikka 39e095e1ed
[8069] feature - [Profile] My profile edit and share screens
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-08-19 11:09:38 +03:00
Andrey Shovkoplyas 11ed6f481f
[#8762] Dapp can't derive a wallet balance, "Not enough ETH for gas" at attempt to send transaction in any DApp
Signed-off-by: yenda <eric@status.im>
2019-08-16 18:06:37 +02:00
Dmitry Novotochinov c2f646b8bd
fix NFC detection
Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-08-16 15:57:02 +03:00
Dmitry Novotochinov b635691c25
recovery flow v1
Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-08-14 19:42:26 +03:00
Andrey Shovkoplyas ba112a765b
[#8666] Add account via BIP 44
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-08-14 17:58:24 +02:00
Andrea Maria Piana 370bc207bc
Add datasync confirmations, enable device-to-device by default
This commit adds datasync confirmations and enables device-to-device for
all the communications, as that's what we will go with v1.

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-08-12 19:52:37 +02:00
Andrea Maria Piana fe9d4e9cd8
Move contacts to status-go
Contacts are now in status-go, no migration of contacts is provided so
all contacts will be lost upon installing this build.

I have left the initialization of filters a bit sketchy (we wait that
load-filters is called twice), as the next step will be to avoid calling
load-filters altogether, as now that both contacts & chats are in
status-go, there's no reason to call it from status-react, and can be
called directly from status-go on loading.

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-08-07 13:39:59 +02:00
Andrea Maria Piana 6fa482a776
Move chats to status-go
This commit moves chats to status-go.

I have changed the logic to load all chats in one go for simplicity and
while that might have a performance impact, I think it's premature to
  optimize this flow as there will be more changes to the login flow.

Also currently this is likely to be slower as we need to wait for the
 status-service to be initialized, as well as realm.

No migration is provided as we are past the point of no return, so by
installing this version you will lose your chats.

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-08-05 16:08:24 +02:00
Dmitry Novotochinov 60de46b6c2
keycard login v1
Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-08-05 11:33:19 +03:00
Andrey Shovkoplyas 6d337bc69a
multiaccounts 2019-07-30 20:35:58 +02:00
Andrea Maria Piana 1e655540da
Fix loading of filters
Currently on some devices there are still some legacy chats(?) that are
one-to-one but don't have a public key as an id (transactor,demo-bot).
We were wrongly sending those to status-go to create filters.

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-07-30 20:25:59 +02:00
Andrey Shovkoplyas 447d37e5ca
[#8673] Temporay hide commands from chat and extensions
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-07-30 19:13:30 +02:00
Andrea Maria Piana 27b77a6dc9
Add datasync,v1messages & disable discovery topic
In preparation for v1 this commits adds a few options so we can get
start debugging the protocol for v1.
This options are:

1) Datasync: If enabled it will send datasync messages
2) V1Messages: If enabled it will send v1 messages (just adding a
signature to the message)
3) Disable discovery topic: If enabled it will stop listening/publishing
on the discovery topic. You will be able to receive messages only from
clients who have this enabled as well.

If any of this option is on, it will only be compatitle with builds >=
this one. A logout is required for any change to take effect.

All this options will be removed before v1, they are there just to make
it easier for us to test and find potential issues.

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-07-30 19:11:59 +02:00
Andrey Shovkoplyas 808aa793e5
[#8648] Packs aren't shown in mainnet but we have them in the contract
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-07-26 15:02:48 +02:00
yenda 89abc8ab11
[fix #8638] issues with wallet transaction list
- pending transaction was using hash so mined transaction was using it's id
to have a unique id, the fix adds a rule when the existing transaction by hash
is in :pending state, the mined transaction overwrites it

Signed-off-by: yenda <eric@status.im>
2019-07-26 14:01:56 +02:00
yenda c8a8b9fdc0
fix #8636
Signed-off-by: yenda <eric@status.im>
2019-07-26 12:45:47 +02:00
yenda 4bd46d9f1c
fix #8639
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-07-26 12:43:52 +02:00
Andrey Shovkoplyas 1ec5d2b64b
[#8631] Fix sticker price UI
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-07-26 12:37:13 +02:00
Andrey Shovkoplyas f3bb555d52
[#8626] Term 'Recovery phrase' should be used instead of 'seed phrase'
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-07-26 12:33:41 +02:00
yenda 3ea8538377
integrate status-go permissions api
Signed-off-by: yenda <eric@status.im>
2019-07-26 12:16:52 +02:00
yenda 0c839860a2
integrate status-go browsers api 2019-07-26 12:16:32 +02:00
bitsikka 07dfc95658
[8556] fix - Last message jumps up after chat is opened
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-07-25 14:29:46 +02:00
Andrea Maria Piana cb5768000a
[Fixes #8604] Integrate status-go protocol library
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-07-24 19:53:34 +02:00
Andrey Shovkoplyas e64777f1d0
[#7723] Stickers are not tappable right after install
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-07-24 14:18:09 +02:00
Julien Eluard f29f02d961
Migrate to latest sticker contract
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-07-24 10:23:15 +02:00
Dmitry Novotochinov d8645e2859
import keycard
Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-07-23 17:28:57 +03:00
yenda 688bafc294
[wallet] integrate changes to wallet service
- update to wallet service now uses flat structure

Signed-off-by: yenda <eric@status.im>
2019-07-22 14:26:39 +02:00
yenda 562773fa1b
[wallet] use status-go wallet service
- remove use of etherscan and subscriptions
- replace by status-go
2019-07-22 11:16:00 +02:00
yenda c3c4a5170a
[multiaccount] rename multiaccount to account
Signed-off-by: yenda <eric@status.im>
2019-07-22 11:14:44 +02:00
Vitaliy Vlasov 3a903fbaa2
Revert "Hide key storage selection screen temporarily"
This reverts commit 8764fafc42.
2019-07-18 13:14:37 +03:00
Vitaliy Vlasov 8764fafc42
Hide key storage selection screen temporarily
Signed-off-by: Vitaliy Vlasov <siphiuel@gmail.com>
2019-07-18 12:59:01 +03:00
Volodymyr Kozieiev b71e37d8ab
Fixed desktop build
Signed-off-by: Volodymyr Kozieiev <vkjr.sp@gmail.com>
2019-07-15 14:47:27 +03:00
Vitaliy Vlasov 5a02074426
Fix repeated key generation
Signed-off-by: Vitaliy Vlasov <siphiuel@gmail.com>
2019-07-12 15:49:22 +03:00
Serhy 3c0a24f429
fix e2e wallet setup
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-07-12 12:36:45 +02:00
Andrey Shovkoplyas a71901d897
[#8458] [#8448] developed popover, share accounts and signing phrase popovers 2019-07-12 12:36:36 +02:00
Dmitry Novotochinov a2da4dec63
[#8502] recover key to keycard
Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-07-12 11:29:47 +03:00
Julien Eluard 28f7ea0408
Enable stickers on all envs. Use contenthash to identify stickers
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
2019-07-11 15:06:32 +02:00
Vitaliy Vlasov 433f840f76
Onboarding sign-in
Signed-off-by: Vitaliy Vlasov <siphiuel@gmail.com>
2019-07-11 15:46:24 +03:00
Pedro Pombeiro b77139c5e2
Fix warning in macOS Nix cache build
Signed-off-by: Pedro Pombeiro <pombeirp@users.noreply.github.com>
2019-07-10 16:34:20 +02:00
Vitaliy Vlasov 75162432e3
Fix onboarding notifications request
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-07-10 15:11:24 +02:00
Andrey Shovkoplyas 368eaf1944
[#8506] [#8408] fixes signing panel
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-07-09 12:53:21 +02:00
Vitaliy Vlasov e9fd6e1a6b
Onboarding setup wizard
New onboarding e2e tests updates

New onboarding e2e fix 2

Signed-off-by: Vitaliy Vlasov <siphiuel@gmail.com>
2019-07-08 18:17:50 +03:00
Dmitry Novotochinov ac25f6766d
new wallet sign with keycard flow
Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-07-08 16:58:43 +03:00
Volodymyr Kozieiev ea8bf402d7
Two pane ui on large screens
Signed-off-by: Volodymyr Kozieiev <vkjr.sp@gmail.com>
2019-07-05 13:03:21 +03:00
Andrea Maria Piana de0d98da20
Use a signal for messages
This commits changes the behavior to read from a signal instead of
polling each filter.

We receive a signal from status-go every 0.3 seconds, only if new
messages are received. We receive a single signal for all the chats, and
we don't dispatch anymore on every message.

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-07-04 15:07:59 +02:00
Andrey Shovkoplyas 893808116a
fixed unknown recipient
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-07-04 11:13:23 +02:00
bitsikka ed050f30a6
[8452] remove scroll-view hack
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-07-04 09:10:32 +02:00
Andrea Maria Piana 138ade3b8d
Move installations to status-go
This commit moves the management of installations to status-go, and
migrates the data from realm.

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-07-03 12:50:23 +02:00
Julien Eluard e1bcaebd2c
Resolve ENS name in chats and profiles
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
2019-07-02 19:41:07 +02:00
Andrey Shovkoplyas 73531b255b
[#8509] Assets list is not fully scrollable on iOS
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-07-02 14:29:43 +02:00
Vitaliy Vlasov 4f6e06bf59
Use react-native-screens
Signed-off-by: Vitaliy Vlasov <siphiuel@gmail.com>
2019-07-01 09:30:19 +03:00
Roman Volosovskyi 6d1b376221
resurrect rn-snoopy and add some comments 2019-06-27 18:34:43 +03:00
Roman Volosovskyi 2b6bfb9851
connectivity-status animation with native driver 2019-06-27 18:09:18 +03:00
Dmitry Novotochinov ab2248f9f8
keycard onboarding v1
Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-06-27 16:02:57 +03:00
Rikku b9d4e61fdf
fix margin between the plus button and bottom tab bar #8166
Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-06-27 15:51:51 +03:00
Roman Volosovskyi 6c50fe84f5
command suggestions and parameters animation with native driver 2019-06-26 16:55:35 +03:00
Roman Volosovskyi fd2c37df71
tooltip animation with native driver 2019-06-26 16:54:38 +03:00
Roman Volosovskyi 453fe60c46
signing sheet animation with nativeDriver 2019-06-26 13:25:28 +03:00
Roman Volosovskyi 8ac0d6b92b
delatable item animation with native driver 2019-06-26 10:55:49 +03:00
Roman Volosovskyi 72d2faee14
preload main tabs after login 2019-06-25 17:36:31 +03:00
Vitaliy Vlasov 9b82f5b9ec
Fix public chats issue
Signed-off-by: Vitaliy Vlasov <siphiuel@gmail.com>
2019-06-25 16:53:35 +03:00
Roman Volosovskyi b172d60f1d
dapp permissions sheet animation with native driver 2019-06-25 15:17:34 +03:00
Roman Volosovskyi cd968cc507
search input animation with nativeDriver 2019-06-25 15:12:13 +03:00
Serhy 7237dd510d
Multiaccount critical e2e fixed
Signed-off-by: Serhy <sergii@status.im>
2019-06-25 13:42:27 +03:00
Julien Eluard 3b7e92230b
[Fix #8067] Added screens for ENS preferred name selection
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
2019-06-25 08:50:39 +02:00
Roman Volosovskyi cd567656d6
stickers panel animation with native driver 2019-06-24 18:28:45 +03:00
Igor Mandrigin 79454938bc
[android, ios] render markdown-ish formatting in chat messages natively.
use patched RN to make sure that heavily-formatted messages don't slow
our chats down.

Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
2019-06-24 16:50:09 +02:00
Roman Volosovskyi ae52fd07f4
add back tooltip-triangle icon 2019-06-24 17:35:40 +03:00
Roman Volosovskyi 4242dddd10
fix network switching in dev mode 2019-06-24 17:11:37 +03:00
Roman Volosovskyi cd97557591
remove message options animation (dead code) 2019-06-24 17:03:36 +03:00
Roman Volosovskyi 4f6086ed1d
input helper animation with native driver 2019-06-24 15:45:40 +03:00
Andrea Maria Piana 532664ab84
Adds topic negotiation and partitioned topic
All the code has been implemented in statusgo: status-im/status-go#1466

Basically all the whisper filter management is done at that level.

Technical description
On startup we load all chats and send a list of them to status go:
For a public chat: {:chatId "status"}, we create a single filter, based on the name of the chat.

For each contact added by us, each user in a group chat and each one to one chat open, we send:
{:chatId "0x", :oneToOne true}. This will create a chats, to listen to their contact code.

Any previously negotiated topic is also returned.

Once loaded, we create our filters, and upsert the mailserver topics, both of which are solely based on the filters loaded.
In order to remove a chat, we delete/stopwatching first the the filter in status-react and then ask status-go to remove the filter. For a public chat we always remove, for a one-to-one we remove only if the user is not in our contacts, or in a group chat or we have a chat open. Negotiated topics are never removed, as otherwise the other user won't be able to contact us anymore.

On stopping whisper we don't have to ask status-go to remove filters as they are removed automatically.

Some more logic can be pushed in status-go, but that will be in subsequent PRs.

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-06-24 13:54:43 +02:00
Roman Volosovskyi e45479138f
[Android] default white background on all screens 2019-06-24 13:54:36 +03:00
Julien Eluard 797d8037e0
Improved chat message tapping area
Signed-off-by: Vitaliy Vlasov <siphiuel@gmail.com>
2019-06-21 15:58:55 +03:00
Vitaliy Vlasov b6163b8ae5
Check tribute if contact was added (but not otherwise)
Signed-off-by: Vitaliy Vlasov <siphiuel@gmail.com>
2019-06-19 15:19:09 +03:00
Roman Volosovskyi 2ad4c9c054
upgrade react-navigation 2019-06-19 12:00:22 +03:00
Andrey Shovkoplyas 26bbac83bc
[#8348] [Multi-Account] Account overview + individual wallet UI
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-06-18 17:44:56 +02:00
Roman Volosovskyi 6da2c93a41
[mobile] switch to png icons 2019-06-18 15:10:10 +03:00
Julien Eluard 8aa16520c6
[Fixes #8066] Added native ENS registration
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-06-18 13:25:56 +02:00
Roman Volosovskyi 7097de6e05
[perf] extensions module 2019-06-13 09:35:09 +03:00
Roman Volosovskyi 908f730b1d
[perf] network module 2019-06-13 09:33:18 +03:00
Igor Mandrigin 2204ad5142
Use `initialNumToRender` property + simplify our messaging FlatList.
see https://facebook.github.io/react-native/docs/flatlist#initialnumtorender

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-06-12 17:03:24 +02:00
Alexandre Magno 287e097471
adding error for a field defined with range that is out of range on extensions
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-06-12 17:02:23 +02:00
Anton Danchenko d1b991f656
e2e fixes 2019-06-12 13:20:02 +02:00
Andrey Shovkoplyas 7de2941f26
[#8026] [Wallet] Sign transaction module 2019-06-12 13:20:01 +02:00
Roman Volosovskyi e925b2dc46
[perf] prod version of slurp
All resources loaded by slurp are moved to status-modules/resources dir
in release builds and are loaded only by demand instead of being bundled into
index.*.js.
2019-06-11 15:52:23 +03:00
tbenr 66dafaef25
[fix #8375] unavailable for non bioauth devices
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-06-11 09:28:15 +02:00
Roman Volosovskyi 9f8ab373f8
prevent showing error dialog and code loading 2019-06-10 21:12:20 +03:00
Roman Volosovskyi 3bd0947b4c
[perf] move goog.i18n deps to a module 2019-06-10 21:10:42 +03:00
yenda 04de022eae
[refactor] replace web3-prototype
- replace web3-prototype wherever possible
- currently only the money namespace is left
for future refactoring, the ideal solution
would be to use strings for big numbers all
the time and only convert for arithmetic operations
- use json-rpc call to replace trivial web3 calls

Signed-off-by: yenda <eric@status.im>
2019-06-06 15:57:34 +02:00
Roman Volosovskyi 632bbf3bc1
[perf] Move translation to node_modules in release build 2019-06-05 18:40:53 +03:00
Rikku 4f125aec43
[#6517] fix chat preview amount ios
Signed-off-by: yenda <eric@status.im>
2019-06-05 16:01:34 +02:00
yenda c2b5523322
[fix] last message preview
Signed-off-by: yenda <eric@status.im>
2019-06-05 12:37:06 +02:00
yenda bd6583cb76
[fix][perf] fix typography on android
- remove font-weight and font-style on mobile because otherwise android
falls back to default font and doesn't use the font-family
- since nested text inherits from parent, only put the needed styling
in nested text style
- use parens instead of brackets to resolve components
2019-06-05 11:38:36 +02:00
yenda 1ae42ea424
[perf] upgrade realm and improve schemas/queries
- upgrade to realm 2.28 to benefit from perf improvements
- remove user-statuses and replace by seen and outgoing-status fields
to get rid of a lot of bloat queries and computations
- remove unused seen message, bottom-infos
- remove unused fields in transport schema
- use objectForPrimaryKey whenever possible instead of get by field

Signed-off-by: yenda <eric@status.im>
2019-06-04 23:36:35 +02:00
yenda b3df9d4952
[fix] class calls
This concerns:
- touchable-opacity
- animated-view
- scroll-view

Tip for rebasing:
search in project for `scroll-view)` `animated-view)` and `touchable-opacity)`

Signed-off-by: yenda <eric@status.im>
2019-06-04 11:25:35 +02:00
yenda 1cb7f3b83f
[perf] remove unused schemas and properties
Signed-off-by: yenda <eric@status.im>
2019-06-03 18:24:34 +02:00
yenda a1d6ead6d3
[perf] use objectForPrimaryKey instead of getByField
Signed-off-by: yenda <eric@status.im>
2019-06-03 16:36:51 +02:00
Vitaliy Vlasov 04ccd0e7d8
Add TtT chat flow
Signed-off-by: yenda <eric@status.im>
2019-06-03 15:31:30 +02:00
yenda 75e20a0bbd
remove useless field in message subs
Signed-off-by: yenda <eric@status.im>
2019-06-03 11:06:34 +02:00
tbenr e93906c0d9
update open-login-callback after fx/def macro fix
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-06-03 10:51:50 +02:00
Igor Mandrigin 34300cc0c0
Remove unused fields in chats dictionary.
Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
2019-05-31 16:11:05 +02:00
yenda 334b3c41a9
[fix] event transfer hash turned into a function
that is silly

Signed-off-by: yenda <eric@status.im>
2019-05-31 11:05:24 +02:00
tbenr 090a4e7c76
fixes #6573
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-05-31 10:25:24 +02:00
Roman Volosovskyi daacccb512
[Android, iOS] Advanced ClojureScript compilation 2019-05-30 21:23:31 +03:00
yenda f03225c03d
[fix] destructuring in events for fx/defn macro
Signed-off-by: yenda <eric@status.im>
2019-05-30 18:17:28 +02:00
yenda 254639e586
[feature] add transaction watch
Signed-off-by: yenda <eric@status.im>
2019-05-30 18:16:18 +02:00
yenda 4b6e5763e1
[feature] add basic decoding support for swarm
Signed-off-by: yenda <eric@status.im>
2019-05-30 18:15:32 +02:00
yenda 131b423a0a
[feature] allow internal transaction to specify asset
- allows transaction flow started by an internal feature to show
the right asset in the overview and in transaction messages
(required for tribute to talk)

Signed-off-by: yenda <eric@status.im>
2019-05-30 15:59:30 +02:00
Igor Mandrigin af6c784ab4
Prepare to use status-go based protocol: 1-1 and public chat management APIs.
Connect to stubs of status-go protocol API, behind the flag. Since status-go isn't updated yet, setting this flag will break the app.
What needs to be tested is no regressions in a normal mode.

Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
2019-05-29 16:34:37 +02:00
yenda 513ca85f27
[fix] on-result event for in app transactions
Signed-off-by: yenda <eric@status.im>
2019-05-29 16:02:53 +02:00
Dmitry 8014f05837
Add goerli testnet
Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
2019-05-29 14:58:59 +02:00
Dmitry Novotochinov fd061833f5
save keycard key-uid to account and use it to login
Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-05-29 12:55:32 +03:00
yenda 7b8bf647e2
[fix] superfluous keyword
Signed-off-by: yenda <eric@status.im>
2019-05-28 18:21:52 +02:00
Andrey Shovkoplyas 5382cad5ec
fix custom tokens
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-05-28 09:21:45 +02:00
Roman Volosovskyi c7c7b50281
RAM bundle basic setup 2019-05-27 17:34:17 +03:00
yenda 9b04dc6530
[dev feature] extend the defn macro
the defn macro knows register the function as an events under the
keywords provided in the :events key of the attributes map. It also
adds the interceptors provided in the :interceptors map

exemple:

```clojure
(fx/defn hello4
  {:doc "this function is useless as well"
   :events [:test/valid1 :test/valid2]}
  [{:keys [db]} b]
  {:db (assoc db :a b) :b (:a db)})
```

Signed-off-by: yenda <eric@status.im>
2019-05-27 13:50:46 +02:00
Roman Volosovskyi 64afaf5eb3
[#8277] Report a bug template
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-05-24 12:14:11 -04:00
Dmitry Novotochinov 1341965a0f
[#8256] do not call getApplicationInfo every time card connected
Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-05-24 15:36:32 +03:00
Roman Volosovskyi 9394dc2bfe
App version and more detail in logs email 2019-05-24 13:37:55 +03:00
Roman Volosovskyi b0be9ee976
Send logs on shaking device 2019-05-24 13:35:04 +03:00
yenda b13864d052
[refactor] move utils.ethereum to ethereum
move utils.ethereum.tokens to ethereum.tokens
move utils.ethereum.abi-spec to ethereum.abi-spec
move utils.ethereum.core to ethereum.core
move utils.ethereum.eip165 to ethereum.eip165
move utils.ethereum.eip55 to ethereum.eip55
move utils.ethereum.eip681 to ethereum.eip681
move utils.ethereum.ens to ethereum.ens
move utils.ethereum.erc721 to ethereum.erc721
move utils.ethereum.mnemonics to ethereum.mnemonics
move utils.ethereum.resolver to ethereum.resolver
move utils.ethereum.macros to ethereum.macros

Signed-off-by: yenda <eric@status.im>
2019-05-23 15:11:48 +02:00
yenda ded207ead2
[refactor] use `ethereum` `current-address` and `chain-keyword`
in many places in the codebase, we are doing various destructuring
and function calls to get the normalized current address and the chain
keyword for the current network

this PR replace all usages by utility functions introduced recently

Signed-off-by: yenda <eric@status.im>
2019-05-23 14:48:43 +02:00
yenda 291c413848
[fix] remove duplicates of :hardwallet/verify-pin event
Signed-off-by: yenda <eric@status.im>
2019-05-23 13:52:03 +02:00
yenda 4103591fe1
[fix] always show tokens that have a balance
- temporary fix before visible assets are fixed
- the problem is that you can't hide an asset with the way it currently
works, it will come back every time as long as there is a balance for it

Signed-off-by: yenda <eric@status.im>
2019-05-23 10:56:35 +02:00
yenda b6fecd4e1c
[refactor] remove ethereum `call` and `call-params`
- use `json-rpc/eth-call` and `json-rpc/eth-transaction-call`
everywhere
- move all conversions to abi-spec
2019-05-23 10:44:15 +02:00
yenda fc4c772c0b
[refactoring] remove web3, clean up wallet effects
- introduce json-rpc namespace, which provides `call` and `eth-call`,
a generic way of calling a json-rpc method taking care of conversions
and error handling
- remove web3 usage from wallet
- clean up effects, reducing the amount of computations when login in
2019-05-23 10:44:15 +02:00
yenda 89680f4861
[performance] improve wallet update performances
`wallet-autoconfig-token` is a very expensive call on mainnet
because it checks the balance of every known token.

it is called:
- when wallet is refreshed by pulling
- when user goes on any wallet screen

this PR changes that by:
- calling it only when the wallet is initialized and there is no
visible-token configuration

it only calls update-wallet when a new transaction arrives
2019-05-23 10:44:15 +02:00
yenda 2cd26c585d
[refactor] transaction history and filters 2019-05-23 10:30:33 +02:00
yenda f1b8ba8764
[refactor] transaction details 2019-05-23 10:30:33 +02:00
yenda b274ed9fa9
[feature] use new block signal to get new transactions
- remove the transaction fetching loop entirely to rely only on subscription
for live transactions and token transfer updates
- fetch token transfers history via etherscan API to lift the 100000 blocks
limit on token transfers history

- inbound token transfers are catched via a filter on ethlogs
- outbound token transfers and other transactions are catched by filtering
transaction in current block that have the wallet address as to or from field
2019-05-23 10:30:32 +02:00
yenda f5c18ae7a9
[feature] use subscriptions for tokens
- removes fetching of last 100000 blocks of token transfers from
the wallet pull loop
- fetches the last 100000 blocks of token transfers at startup
- replaces pulling by subscriptions to ethlogs for token transfers
2019-05-23 10:30:32 +02:00
Andrey Shovkoplyas 8c349a3038
[#8239] App crash when submit cryptokitties with different than it's valid domain
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-05-22 17:52:20 +02:00
Andrey Shovkoplyas 7a1cb54b2a
[#8236] [Wallet] Custom token details and remove
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-05-22 16:50:05 +02:00
Edvard 0ac53000f6
Add Bloom token
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-05-22 16:42:20 +02:00
Roman Volosovskyi 932ef27ee8
[performance] limit number of rendered messages when open a chat 2019-05-22 16:59:13 +03:00
bitsikka d640b4c87c
[7947] Feature: Blank out app preview screen when switching apps on mobile
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-05-22 15:31:50 +02:00
Churikova Tetiana 6b1c42ffcb
added accessibility-labels
Signed-off-by: Churikova Tetiana <churikova.tm@gmail.com>
2019-05-22 10:04:39 +02:00
Andrey Shovkoplyas df2a9a0297
[#8249] "" when grant access to ens dapp shown, it prevents the name to be registered
Signed-off-by: yenda <eric@status.im>
2019-05-22 09:56:40 +02:00
Volodymyr Kozieiev add759711a
Optimized ScrollView instead of FlatList for desktop chat
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-05-21 10:51:36 +02:00
bitsikka 4f8399a8fd
[7715] Feature: Contextual bottom sheet on long press
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-05-20 17:04:21 +02:00
Andrey Shovkoplyas 23b04288f1
[#7983] Basic user added ERC-20 support
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-05-20 14:29:38 +02:00
Roman Volosovskyi 543ccb69e8
Add send logs button to exception dialog 2019-05-20 15:25:27 +03:00
Dmitry Novotochinov 89643b425e
[#8187] fix keyboard pop-up when logout after keycard setup finished
Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-05-20 11:55:32 +03:00
yenda 70e889a03a
[performance] replace reduce by reduce-kv
For associative collections, using reduce-kv should
give a small performance gain over reduce as there is
no allocation of tuples for key/value pairs

Signed-off-by: yenda <eric@status.im>
2019-05-17 19:44:26 +02:00
Roman Volosovskyi 3226309bab
Add js logs to archive 2019-05-15 17:40:41 +03:00
yenda b0449f3416
[fix] ipfs CID
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-05-14 13:44:08 +02:00
tbenr 1ff0a937ac
fixes #7371
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-05-14 13:42:28 +02:00
Roman Volosovskyi 74093f6843
[iOS] Allow to send email with logs on iOS 2019-05-14 12:57:05 +03:00
yenda 65f05933bc
[feature] use status-go signal subscriptions for current block
- use signal subscriptions to get latest block signals
- compute confirmations in transaction details from current block
dynamically

Signed-off-by: yenda <eric@status.im>
2019-05-13 15:36:58 +02:00
yenda 9b18f1d261
[feature] add varint encoding/decoding
Signed-off-by: yenda <eric@status.im>
2019-05-13 13:53:06 +02:00
Andrey Shovkoplyas 26390296b1
[#8160] "this.props.onPress is not a function" on tapping back from transaction details screen
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-05-13 09:53:19 +02:00
Dmitry Novotochinov 5d6d549511
[#7927] import keycard account to new device
Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-05-11 23:10:02 +03:00
Dmitry Novotochinov 5762967a44
[#7887] handle tag lost errors
Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-05-11 23:05:33 +03:00
Dmitry Novotochinov 1f24f1c4f6
[#7897] fix navigation bug on keycard tx sign
Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-05-11 15:27:30 +03:00
Roman Volosovskyi ff39426e56
[android] send logs to error-reports@status.im 2019-05-10 17:02:58 +03:00
Andrey Shovkoplyas eaf3e8d7bd
[#8082] Some dapps don't work in status when privacy mode is enabled
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-05-09 10:55:30 +02:00
Andrey Shovkoplyas f3b6f98079
[#8107] Wallet balance is not updated when transaction is received
Signed-off-by: Pedro Pombeiro <pombeirp@users.noreply.github.com>
2019-05-08 16:40:47 +02:00
Vitaliy Vlasov fae604b31f
Fix group chat info labels
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-05-08 14:45:38 +02:00
Julien Eluard 99172607d5
[Fixes #7325] Add EIP681 deeplink support
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-05-08 14:44:24 +02:00
Dmitry Novotochinov 99e00898f9
[#7911 #7894] delete account and logout after keycard reset
Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-05-08 14:35:10 +03:00
Andrey Shovkoplyas 5926c2bb55
[#8121] Resolved ENS address is not checksummed
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-05-08 11:54:53 +02:00
Julien Eluard 7b0ebf75e9
Fixed broken EIP15777 support
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
2019-05-07 15:38:55 +02:00
Roman Volosovskyi aaaa625e9a
[#1442] Allow only decimal number in send command 2019-05-07 12:37:29 +03:00
Roman Volosovskyi 6b99225e06
[#8123] Show fetch more messages only after sync 2019-05-06 17:28:22 +03:00
Roman Volosovskyi 148d43fdab
[#7871] Handle multiple opened screens with qr code readers 2019-05-06 17:25:02 +03:00
Roman Volosovskyi 33621aec7c
Fix crash on switching to Ropsten (dev mode) 2019-05-06 12:55:54 +03:00
Serhy 545eb513ff
Share checksum address in wallet
Signed-off-by: Serhy <sergii@status.im>
2019-05-06 12:00:39 +03:00
Dmitry Novotochinov 32620e7f5b
[#7898] remove pin from alert message
Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-05-06 11:28:32 +03:00
Volodymyr Kozieiev 32f7f91e32
Mobile UI on desktop can be enabled in .env file
Signed-off-by: Volodymyr Kozieiev <vkjr.sp@gmail.com>
2019-05-03 18:11:09 +03:00
Alexandre Magno e6bd5c5016
adding error property on input component for extension
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
2019-05-03 10:00:48 +02:00
tbenr 3095701ec0
fixes #7355
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
2019-05-02 18:28:23 +02:00
Julien Eluard 25b17a85e3
[Fixed #7948] Do not navigate back to chat when in a DApp
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
2019-05-02 18:27:20 +02:00
Roman Volosovskyi f0a55dda3d
[#8080] Prevent extra gap in 1:1 chats on adding group chat 2019-05-02 17:05:00 +03:00
Goran Jovic d326148ad6
feature #4959 - eip-55 in wallet send and request
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-05-02 14:49:19 +02:00
Roman Volosovskyi 62e94ed4d4
[#7848] Fix crash on logout with opened transactions details 2019-05-02 14:06:50 +03:00
Andrey Shovkoplyas 082188eea9
small changes in subscriptions
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-05-02 12:13:37 +02:00
Roman Volosovskyi 70b95a3a4d
[#8072] Fix crash on deleting group chat 2019-05-02 12:09:14 +03:00
Andrey Shovkoplyas a8bfa12da2
make contacts round again
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-05-02 10:52:15 +02:00
Roman Volosovskyi 3b90be2477
[#7859] Allow to select chat item below plus button 2019-05-02 11:18:57 +03:00
Roman Volosovskyi 8dc7c8986e
[#8064] Fix deletion of a custom mailserver 2019-05-01 20:41:11 +03:00
bitsikka f9e5101426
[#7819] fix - avoid unnecessary effects when joining/syncing already active public chat
Signed-off-by: yenda <eric@status.im>
2019-05-01 15:04:15 +02:00
Andrey Shovkoplyas 428464df07
re-frame subscriptions optimization
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-05-01 12:49:31 +02:00
Roman Volosovskyi b90f1e5324
Gaps on desktop 2019-05-01 11:17:33 +03:00
Vitaliy Vlasov e725fffe22
Move block contact related code
- this will avoid circular dependencies in future Tribute to Talk commits

Signed-off-by: yenda <eric@status.im>
2019-04-30 16:57:34 +02:00
Vitaliy Vlasov 1ca9294af7
[MVP TTT] Contract support for settings
- settings are stored in a manifest that is pointed at by the contract
- during login the contract is checked to fetch the settings

Signed-off-by: yenda <eric@status.im>
2019-04-30 14:52:33 +02:00
Roman Volosovskyi 0b32ded791
Loading indicator animation with useNativeDriver 2019-04-29 07:50:32 +03:00
Roman Volosovskyi e8ef7a4c33
update :network with proper value 2019-04-27 19:01:01 +03:00
yenda d383051737
[fix 8054] network in app-db is not always correct
- when login in after a different account using a different network
the new account inherited the network from the previous one
- this fixes it by using the account network when initializing app-db
instead of reusing current network

Signed-off-by: yenda <eric@status.im>
2019-04-27 12:03:47 +02:00
Andrey Shovkoplyas 4b62490e80
[#8051] TypeError (evaluating 'a.replace') when logging out with wallet is on 'Send transaction' screen
Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
2019-04-26 15:46:47 +02:00
Dmitry Novotochinov ebccb8e020
[#7908] [#7909] handle wrong pairing password
* show 'invalid pairing password' on failed pairing
* wrap view into scroll view

Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-04-26 15:57:06 +03:00
Dmitry Novotochinov 08d7db80af
[#7890] handle wrong keycard when signing
Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-04-26 15:55:03 +03:00
Roman Volosovskyi 9b9eefbf0e
Allow to fetch more history in public chats (up to 30 days) 2019-04-26 15:53:26 +03:00
Julien Eluard f6fce850b2
Revert "After dismissing error, no redirect to home and new qr can be"
This reverts commit 386c678caf.
2019-04-26 15:27:44 +03:00
Anton Danchenko 43ac92b9b0
enable stickers in e2e builds and added accessibility labels
Signed-off-by: Serhy <sergii@status.im>
2019-04-26 14:32:33 +03:00
yenda c4f719352e
[fix] wallet on-error dispatch
the code to dispatch an event on transaction error was not working
this fixes it

Signed-off-by: yenda <eric@status.im>
2019-04-25 17:42:34 +02:00
Roman Volosovskyi 3a2d70273e
Maintain scroll postion after fetching gap
Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
2019-04-25 16:01:03 +02:00
Andrea Maria Piana 494772a35d
Fix broken contact syncing
Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
2019-04-25 12:45:20 +02:00
Julien Eluard bdb672e131
[Fixes #8001] Fixes white flash on Android
Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
2019-04-25 08:59:00 +02:00
Roman Volosovskyi c98f547349
Multiple messages gaps per chat 2019-04-24 22:33:08 +03:00
yenda 60225995b7
fix token transactions
Signed-off-by: yenda <eric@status.im>
2019-04-24 19:52:58 +02:00
Dmitry Novotochinov 072ab5c487
ensure card has applet installed before starting setup
Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-04-24 16:37:40 +03:00
Brandon Wissmann 701773608c
remove ability to change values while signing transaction
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-04-24 12:00:00 +02:00
Andrey Shovkoplyas 722fd67938
[#8008] Error "No protocol method IDeref.-deref defined for type undefined:" and crash if open DApp permissions
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-04-24 11:58:17 +02:00
Andrey Shovkoplyas 0d2be79452
react switch warnings fix
Signed-off-by: yenda <eric@status.im>
2019-04-23 22:36:55 +02:00
yenda 3134d1dfce
[fix] fetch wallet token transactions
- previously wallet transaction fetching was quite hazardous
- most of the time the `:wallet/all-tokens` map was nil so no token
was recognized
- the query for transfers was made accross 100000 blocks, now it
only checks that the first time, then from latest block checked minus
12 to follow progress of unconfirmed transactions

Signed-off-by: yenda <eric@status.im>
2019-04-23 14:24:41 +02:00
yenda 9d84ef3ad1
[feature] implement erc20 get-transaction for SNT and STT
- change `ethereum/get-transaction` to use call-private-rpc instead
of web3 object
- implement a version for erc20 tokens SNT and STT that provides enriches
result of get-transaction with `:recipient` and `:snt-amount`

Signed-off-by: yenda <eric@status.im>
2019-04-23 14:23:44 +02:00
yenda 2c028a474b
[refactor] send-transaction-message fx/defn
- turn :send-transaction-message event into an fx producing function
- allow transaction with defined on-result event to also send transaction
message

Signed-off-by: yenda <eric@status.im>
2019-04-23 14:23:00 +02:00
bitsikka 8482ea5b5a
[#7933] fix - joining public chat with messages throws error
[#7933] fix - joining public chat with messages throws error
2019-04-19 13:00:23 +03:00
Andrey Shovkoplyas 6f16ccf416
[#6457] Implement extension data persistence
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-04-18 15:53:22 +02:00
Andrey Shovkoplyas 159199a1b3
removed dapps list and introduced simple Dapp store dapp
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-04-18 15:49:06 +02:00
bitsikka cd1dfb67f4
[#7917] fix - Contacts are not synced between 0.11.0 and current nightly
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-04-16 21:33:46 +02:00
Roman Volosovskyi 5bd25515e4
Fix endless spinner on Fetch messages 2019-04-16 22:10:39 +03:00
Roman Volosovskyi 2753b0ef60
Skip fetching 24h of discovery topics on a new account
Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
2019-04-16 11:55:17 +02:00
Andrey Shovkoplyas 0fb9cabcfc
new profile hook and capacities
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-04-15 16:45:47 +02:00
Andrey Shovkoplyas b721f4810f
fixes and improvements for chat command
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-04-15 16:44:42 +02:00
Kris Calabio a06ca37de5
Emoji-only messages can be long-pressed
Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
2019-04-15 10:25:13 +02:00
Roman Volosovskyi a4d8f57b09
Fetch missed range of messages 2019-04-12 16:22:44 +03:00
Emilio Silva Schlenker 64b63d5593
[#7598] Beta alert on upgrading
Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
2019-04-11 20:50:10 +02:00
bitsikka 316a50b032
[#7930] fix - No label is shown for empty chat screen if you open public chat via deep link after opening another public chat via deep link
Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
2019-04-11 19:35:29 +02:00
Dmitry Novotochinov 14f3b43090
[#7892] generate mnemonic offline
pass bip39 words list to keycard sdk, instead of fetch it from github

Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-04-10 14:38:30 +03:00
Jakub Sokołowski 1d00e9bb3d
change App ID for PRs on Android to avoid replacing release
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-04-10 11:49:40 +02:00
bitsikka be2b2a112e
[#7931] fix - Text for chat name for empty public chat is not centered if contains > 1 row
Signed-off-by: Pedro Pombeiro <pombeirp@users.noreply.github.com>
2019-04-08 19:27:37 +02:00
bitsikka 234a51c97e
[#4158] Fix New messages counter being shown for already seen messages
Signed-off-by: Pedro Pombeiro <pombeirp@users.noreply.github.com>
2019-04-08 19:26:57 +02:00
Kris Calabio 386c678caf
After dismissing error, no redirect to home and new qr can be
scanned.

Signed-off-by: Pedro Pombeiro <pombeirp@users.noreply.github.com>
2019-04-08 19:26:24 +02:00
bitsikka 22bd2f1761
[#7799] fix chat does not scroll if touch starts on top of datemark
Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
2019-04-05 17:08:04 +02:00
Julien Eluard 7dae2ecaf6
Fixed incorrect wallet on-open payload
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
2019-04-05 16:00:01 +02:00
Dmitry Novotochinov 4decedf5f6
Revert "Revert "[#7133] sign tx with keycard""
This reverts commit 4ccb1ea52d.

Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-04-05 15:49:47 +03:00
Andrea Maria Piana f8674c0ee1
Add reading nodes from contract
This PR is part of network incentivisation. It adds a way for a client
to pull nodes from a contract.

This is done by selecting the `eth.contract` fleet. If that is selected
on login it will fetch nodes from a contract and pass them to status-go.
If these can't be fetched, it will default to `eth.beta`.

Currently contract information are hard-coded, but eventually the user
will be able to add their own (probably).

Toggled off in release.

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-04-05 14:32:15 +02:00
yenda 9b47275249
[fix] don't lose big number precision above 53 bits in abi-spec
- convert to string instead of numbers in hex-to-number
- remove usage of full web3 lib

Signed-off-by: yenda <eric@status.im>
2019-04-04 13:53:15 +02:00
bitsikka 6aae0b76b9
[#7454] fix add basic copy to public chat empty screen state + related issues/feature regarding chat message-views intro screens for all chats types
[#7454] fix add basic copy to public chat empty screen state + chat messages-views intro screens for all chats

Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
2019-04-04 12:34:37 +02:00
yenda c9a8fb2684
[fix] contract call effect should destructure keys not vector
- return params decoding should return nil and not "0x"

Signed-off-by: yenda <eric@status.im>
2019-04-04 10:04:29 +02:00
yenda 06f72e749e
[fix] missing cofx for ipfs/cat call in contenthash/cat
Signed-off-by: yenda <eric@status.im>
2019-04-04 10:01:50 +02:00
tbenr 38fc712f07
fixes #7667
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
2019-04-03 11:50:56 +02:00
yenda e690dbdf89
[feature] contracts namespace
* `open-sign-transaction-flow` cleaner version of
`open-modal-wallet-for-transaction`
* The contract namespace provides the `call` effect:
- takes contract identifier from contracts, method, params and callback
- select the correct contract address based on current network
- encode params, decodes results
- start wallet transaction flow for write calls

Signed-off-by: yenda <eric@status.im>
2019-04-03 10:26:26 +02:00
Dmitry Novotochinov 4ccb1ea52d
Revert "[#7133] sign tx with keycard"
This reverts commit feffcaf33d.

Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-04-02 20:12:40 +03:00
Dmitry Novotochinov feffcaf33d
[#7133] sign tx with keycard
Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-04-02 18:07:41 +03:00
Julien Eluard e66452ba4b
Fixed missing parameter usage
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
2019-04-02 14:35:03 +02:00
Julien Eluard fb27e13a31
[Fixed #7864] Removed now irrelevant dapps
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
2019-04-02 13:08:44 +02:00
tbenr 6e84cf22a9
fixes #7363
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
2019-04-02 13:06:58 +02:00
Roman Volosovskyi 24a978d442
Migrate to RN 0.59.2 2019-04-01 17:42:57 +03:00
Vitaliy Vlasov 76c2ad2bc4
Add mailserver and bootnodes settings
Signed-off-by: Vitaliy Vlasov <siphiuel@gmail.com>
2019-03-29 14:20:53 +02:00
tbenr 648dc9b74a
fixes value -> data
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
2019-03-29 09:14:19 +01:00
yenda 89902947b6
[feature] contenthash utility namespace
- support for ipfs only
- provides fns to encode and decode contenthashes as defined in EIP1577
- provides cat fx to retrieve contenthash

Signed-off-by: yenda <eric@status.im>
2019-03-28 17:23:00 +01:00
yenda 884a44b5df
use call-private-rpc in ethereum/call
- remove web3 parameter for ethereum/call
- remove first parameter for callback of ethereum/call which
was always nil

Signed-off-by: yenda <eric@status.im>
2019-03-28 17:20:36 +01:00
Julien Eluard 1bfa3cf178
Upgraded to latest pluto
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
2019-03-28 15:48:44 +01:00
yenda a6616033f4
[refactor] add check in abi-spec decode and expect a hex string
Signed-off-by: yenda <eric@status.im>
2019-03-28 15:38:20 +01:00
yenda 9aea669da3
[feature] add ipfs module to add and cat content on ipfs
Signed-off-by: yenda <eric@status.im>
2019-03-28 14:41:09 +01:00
yenda 1de40487e8
docstring have to be placed before arglist in defn
Signed-off-by: yenda <eric@status.im>
2019-03-28 13:38:23 +01:00
Andrea Maria Piana 3eb570f082
Set chaos mode every time, dont show the popup everytime
Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
2019-03-26 15:58:21 +01:00
Andrea Maria Piana 29c168dfa1
Upgrade status-go and turn chaos mode on
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-03-26 10:59:21 +01:00
yenda 26b97ddf43
introduce system-tags
Signed-off-by: yenda <eric@status.im>
2019-03-25 16:55:09 +01:00
Roman Volosovskyi dd4d7457a5
[#7821] Fix navigation on sending eth from chat 2019-03-25 13:03:53 +02:00
Roman Volosovskyi d4d6757c69
[#4935] Prevent connecting to the network with wrong id 2019-03-25 09:45:52 +02:00
yenda d77c2f9c78
fix message on empty search results
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-03-22 14:26:05 +01:00
yenda d63b16b138
remove white line on android wallet screen
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-03-22 14:03:36 +01:00
Roman Volosovskyi 65e7e06b27
[#7681] Show confirmation dialog on switching to network with upstream RPC 2019-03-22 13:23:10 +02:00
Andrey Shovkoplyas 5e1713ddf8
[#7776] Blank screen after username submit when creating new account on Desktop
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-03-21 17:12:42 +01:00
Roman Volosovskyi 8f40f796f5
Add validation tooltip to mailserver/bootnode address input 2019-03-21 16:41:18 +02:00
etherman e8116e7d62
added etherman to dapp list
Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
2019-03-21 13:44:52 +01:00
yenda 5e7186ed52
[fix 5695] remove close icon in add to contacts bar
Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
2019-03-21 13:44:00 +01:00
Andrea Maria Piana 25ea0192e5
Fix qr code and bootnode
Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
2019-03-21 13:40:45 +01:00
Andrey Shovkoplyas d698ffe09e
[#7764] Image on Welcome to Status screen is not center aligned on small device screens
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-03-21 13:02:31 +01:00
Roman Volosovskyi 6a3468c800
Request if chaos mode was enabled 2019-03-21 13:22:21 +02:00
Roman Volosovskyi 4e942a169a
[#7549] Fix universal link to public chat 2019-03-21 13:06:21 +02:00
yenda 496f3f1cc7
[design] use Inter font on Android
- implement typography component
- replace InterUI font by Inter font (renaming)

Signed-off-by: yenda <eric@status.im>
2019-03-20 18:42:31 +01:00
Roman Volosovskyi 403f327c34
[#7771] Fix beta warning 2019-03-20 15:37:04 +02:00
Roman Volosovskyi f25cf1a0f9
Reduce overdraw on main tabs
Fix e2e when swip-to-delete item
2019-03-20 14:59:22 +02:00
Roman Volosovskyi d40b71a4fe
Reduce overdraw in bottom bar 2019-03-20 12:41:59 +02:00
Andrey Shovkoplyas d0de1c5c24
[#7188] undefined is not an object (evaluating 'e.substring') when dapps / stickers offline
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-03-20 11:17:19 +01:00
Roman Volosovskyi c61ce1892f
Fix error during cljs compilation with prod profile 2019-03-20 08:36:57 +02:00
Roman Volosovskyi 298f000fcb
Disable Etherscan and Cryptocompare requests in chaos mode 2019-03-19 19:35:24 +02:00
Andrey Shovkoplyas ad4c6ce94f
[#7684] Relocate and change menu for "+" icon on home/chat screen 2019-03-19 13:11:20 +01:00
Julien Eluard 38570aa42f
Migrated to latest pluto release
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-03-19 12:55:15 +01:00
Andrey Shovkoplyas 3efeb71a16
desktop emoji
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-03-19 11:29:53 +01:00
Roman Volosovskyi 7f76e2fbf0
Enable partitioned topic 2019-03-18 13:52:13 +02:00
Andrea Maria Piana dc0d42ee6b
Don't specify `to` when making the request to mailserver.
In some cases (say the clock of the device has drifted) specifying a `to` parameter
is decrimental and might result in missing messages.

We have changed the mailservers to default `to` if not present to `now`,
which should gives us better guarantees.

We also removed the 24 hours limit as now all the requests will be
paginated according to the `limit` parameter.

Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
2019-03-15 16:09:52 +01:00
Andrea Maria Piana 3431957a7f
Pass cofx as first parameter when deleting bootnodes
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-03-15 13:23:19 +01:00
Goran Jovic fcb3cef110
refactor #7571 - decoupled request transaction from send transaction flow
Signed-off-by: Goran Jovic <goranjovic@gmail.com>
2019-03-15 10:43:53 +01:00
Goran Jovic dccc81db7b
bug #7724 - correctly showing password errors for sign message
Signed-off-by: Goran Jovic <goranjovic@gmail.com>
2019-03-15 10:42:26 +01:00
yenda 670deb1f4c
[design] remove letter-spacing property
Signed-off-by: yenda <eric@status.im>
2019-03-14 20:59:30 +01:00
Andrea Maria Piana d32f81bbff
Set maximum number of attempts in config
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-03-14 16:23:14 +01:00
Speedy Fixer 8f0955bea9
[Fix #7075] Show decoded topics and data as a clojure map in events properties
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
2019-03-14 13:45:20 +01:00
Serhy ac718de425
Update critical autotests 2019-03-14 09:45:55 +01:00
Andrey Shovkoplyas 30ab6c159a
[#7534] Separate DApp & chat tabs in mobile navigation 2019-03-14 09:45:53 +01:00
yenda 7cad165a66
fix missing toolbar separator
Signed-off-by: yenda <eric@status.im>
2019-03-13 17:24:24 +01:00
Dmitry Novotochinov f91a69c6b0
Make keycard login faster
Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-03-12 13:38:36 +03:00
tbenr 2fd3ff798a
support style in link
and map-link components in extensions

Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
2019-03-11 14:56:33 +01:00
Roman Volosovskyi a30c379a87
Bottom tab animation on leaving/entering main tabs 2019-03-11 10:58:15 +02:00
tbenr de5c23d39f
fixes #7353
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
2019-03-11 09:40:41 +01:00
Dmitry Novotochinov 43bd6d159a
improve keycard installation UX
Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2019-03-08 14:57:29 +03:00
Andrey Shovkoplyas 59feb5ecd8
[#7611] Update stickers contract and use "approveAndCall" feature
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-03-08 10:31:51 +01:00
Andrey Shovkoplyas 38aca129cd
[#7527] Extension is not shown in chat if Development mode is switched off
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2019-03-07 20:33:19 +01:00