171 Commits

Author SHA1 Message Date
Roman Volosovskyi
c61200f9ae
[#5180] Encrypt account's db with password 2018-09-13 12:20:13 +03:00
Eric Dvorsak
80aa0e9286
[feature #5213] allow user to select fleet in settings
- get wnodes from resources/config/fleets.json which is taken from
fleets.status.im
- store wnodes by fleet and not by network since they are always the same
- reset wnodes settings during migration
- add option in developper menu to select fleet
- mailservers are now presented by their real name

Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
2018-09-07 15:33:29 +02:00
janherich
252d09ee05
Fix the bug and remove requests 2018-09-06 18:24:17 +03:00
Eric Dvorsak
6d84795b2a
[fix 5738] unread counter disappears after app restart
`get-unviewed-messages` cofx was using the `current-public-key`
field from app-db
since it is not set at the point cofx are computed during the init
phase this field is nil and therefore no unread messages were found

the fix changes the cofx so that it returns a function as it is
already done for many cofx that needs parameters that are not
known at the time cofx are computed.

Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
2018-09-04 14:08:11 +02:00
Goran Jovic
879e33b9b5
bug #5356 - added snackbar for wallet errors, removed ATT from default tokens on ropsten
Signed-off-by: Goran Jovic <goranjovic@gmail.com>
2018-08-14 12:34:24 +02:00
Andrey Shovkoplyas
61374add53
Introduce extended DApp API [#5042]
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2018-07-19 19:47:17 +03:00
Roman Volosovskyi
bb7d31a357
[#5169] Remove Mixpanel 2018-07-18 06:57:16 +03:00
Andrea Maria Piana
f8c9bec383
[Fixes #5127] Move files to no-backup directory & hash accounts
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2018-07-13 10:06:36 +02:00
Andrey Shovkoplyas
a644075310
No browsing history kept on iOS [#5078]
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2018-07-12 15:04:31 +03:00
Andrea Maria Piana
a2ee06bc9d
[Fixes #4998 ] Handle decryption failures in realm
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2018-07-11 17:29:56 +02:00
pacamara
5e3f65eac8
Fixes #3639 Persist browser history
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2018-07-06 13:23:53 +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
Andrea Maria Piana
5935d29d7d
Allow user to access account on invalid key
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
2018-06-22 16:03:59 +02:00
Dmitry Novotochinov
08932c4e2b
Show mainnet warning
Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
2018-06-21 16:59:41 +02:00
Pedro Pombeiro
227014674c
Add 6 new languages as public channels in the localized language. Closes #4753 2018-06-20 19:11:56 +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
Goran Jovic
3eca07cadb
bug #4508 - removes tokens and fiat currencies unsupported by cryptocompare
Signed-off-by: Pedro Pombeiro <pombeirp@users.noreply.github.com>
2018-06-11 20:37:51 +02:00
janherich
4ba78de407
Faster seen marking
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
2018-06-11 12:16:42 +02:00
janherich
cd5542f648
Persist unseen messages 2018-06-05 15:24:55 +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
Eric Dvorsak
68eb36f7b1
[fix] support offline contact request, confirmation and update
- fix a bug in profile where app would was returning directly to profile
screen after photo capture, showing updating to user but not actually saving
and broadcasting it
- adds support for offline contact request, confirmation and updates by
leveraging the :sent and :not-sent signal from status-go. Each chat
in the protocol layer uses a `resend?` field to keep track of the current
state of the contact, between `nil`, `contact-request`,
`contact-request-confirmation` and `contact-update`. There is no case
were it can be more than one case because if `contact-request` or
`contact-request-confirmation` was not sent yet `contact-update` is not
necessary as the latest contact infos will be sent with the request/confirmation

Signed-off-by: Eric Dvorsak <eric@status.im>
2018-05-31 17:43:37 +02:00
Andrea Maria Piana
33ad919508
Add custom bootnodes
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2018-05-30 17:49:13 +02:00
Andrea Maria Piana
92289f452e
Dont open chat on contact request
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2018-05-29 14:59:51 +02:00
janherich
874e88fc38
Fix seen statuses
Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
2018-05-29 14:48:27 +02:00
Andrea Maria Piana
26dd1c1f5a
Reset realm when fail to decrypt
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2018-05-29 11:28:44 +02:00
Eric Dvorsak
203f399aca
use from parameter for mailserver requests
Signed-off-by: Eric Dvorsak <eric@dvorsak.fr>
2018-05-29 10:19:08 +02:00
Goran Jovic
35467ffd69
bug #4192 - removing mnemonic from db after user backs up seed phrase
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2018-05-28 16:31:00 +02:00
Andrea Maria Piana
9cfb591068
Remove chat / clear history
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2018-05-28 16:28:16 +02:00
Aleksandr Pantiukhov
4f6830b271
[#3941]: Introducing wallet / notification not for new user
Signed-off-by: Pedro Pombeiro <pombeirp@users.noreply.github.com>
2018-05-25 16:06:03 +02:00
Andrea Maria Piana
735a5b403d
Add custom mailservers feature-toggled
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2018-05-23 15:35:25 +02:00
Igor Mandrigin
685e4d271e
Update the realm reset phrase.
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
2018-05-22 13:47:49 +02:00
janherich
efdd6debb0
Fix network id lookup 2018-05-21 15:31:13 +02:00
Andrey Shovkoplyas
3f3684cddf
removed contacts groups and debug console
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2018-05-18 15:17:51 +03:00
janherich
7574a1dc25
Erase realm on new installation
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2018-05-18 15:16:20 +03:00
janherich
ae109c6e99
Second stage of realm transactions
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
2018-05-16 11:26:44 +02:00
Aleksandr Pantiukhov
01a4869397
[#3939]: Introducing wallet / welcome screen;
[#3940]: Introducing wallet / signing phrase;
open-migrated-realm has been removed;
2018-05-11 07:23:32 +03:00
janherich
62a9f26e30
First stage of realm transactions 2018-05-10 17:21:23 +02:00
Roman Volosovskyi
6c620728da
reformat status-im.data-store.* namespaces
reformat status-im.utils.* namespaces
2018-05-08 09:01:24 +03:00
janherich
504b0be251
Strip unnecessary keys for saving 2018-05-04 21:29:26 +02:00
kwingram25
90eb2aaaa1
[FEATURE] Encrypt realms 2018-05-02 15:02:54 +02:00
Dmitry Novotochinov
a8a03067a1
Add resend and delete message actions
* Set message status based on signal from Go
* Set status as "not-sent" on app start if no signal received

Signed-off-by: Dmitry Novotochinov <trybeee@gmail.com>
2018-04-27 11:03:42 +03:00
janherich
c6130ed650
Finish faster conversions 2018-04-26 17:21:03 +02:00
Andrea Maria Piana
baf211e1f3
Send signed transaction to deleted chats 2018-04-25 08:55:39 +02:00
Andrey Shovkoplyas
212fb46ce6
added mixpanel events for
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2018-04-18 20:38:33 +03:00
Eric Dvorsak
3612fd8c47
[fix 3806] Provide separate MailServers for each network
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2018-04-16 12:28:50 +03:00
Eric Dvorsak
cf03088a51
delete realm file if schemas are incompatible
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2018-04-16 11:52:28 +03:00
janherich
f406feacc7
Contact refactoring 2018-04-11 14:57:51 +02:00
Andrea Maria Piana
3256d67c2e
Add clock values for public group/chats
I have extended and modified the current algorithm for message ordering
so that it applies for group and public chats alike.

We use Lamport timestamps but we prefix the unix timestamp, which should
maximize the chances of the message being seen on the top of the chat.

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2018-04-10 12:19:42 +01:00
Eric Dvorsak
d9eca279d0
Remove migrations as they are not needed anymore because of breaking change
Signed-off-by: Eric Dvorsak <eric@dvorsak.fr>
2018-04-09 09:42:46 +02:00
Eric Dvorsak
26b0224236
remove crypto libraries and nodeify hack
Signed-off-by: Eric Dvorsak <eric@dvorsak.fr>
2018-04-06 13:30:27 +02:00