160 Commits

Author SHA1 Message Date
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
Eric Dvorsak
df17c50612
Add new protocol
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2018-04-05 15:40:30 +01:00
Andrea Maria Piana
e77504c26f
Revert "Fix message ordering for 1-1 chats"
This reverts commit 7efcdcb15046c6b6fdfa2d03965a3af00fb9c5a7.

We decided to revert this commit as it introduced a couple of issues in
message ordering. In order to release we revert back to the old
behaviour.

Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
2018-03-28 17:04:49 +02:00
Andrey Shovkoplyas
946a44d257
implemented profile onboarding
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2018-03-19 19:01:15 +03:00
Itoh, Masaru
98a0c2081f
Refactor timestamp
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2018-03-15 11:53:23 +00:00
janherich
7efcdcb150
Fix message ordering for 1-1 chats 2018-03-04 19:26:08 +01:00
Hanwen Cheng
502a28ec7a
Fix #3013 Swipe chat based deletion
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
2018-03-02 12:27:21 +01:00
Andrey Shovkoplyas
eb8557dde8
Introduced onboarding sign in
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2018-03-01 12:16:03 +03:00
Dmitry Novotochinov
8abdd77fb4
[refs #3210] Replace realm reads for chats with app-db reads
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2018-02-21 18:22:35 +03:00
Eric Dvorsak
cc8ef6580e
Revert "Fix #3013 Swipe chat based deletion"
This reverts commit f4f1ab4e2fa6beac22765b19dfcf98bcac463253.

Signed-off-by: Eric Dvorsak <eric@dvorsak.fr>
2018-02-21 04:03:15 +01:00
Hanwen Cheng
f4f1ab4e2f
Fix #3013 Swipe chat based deletion
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
2018-02-20 22:47:00 +03:00
janherich
fb4ea0572b
Fix latest nightly -> nigthly migration 2018-02-19 18:43:35 +01:00