Commit Graph

466 Commits

Author SHA1 Message Date
Andrey Shovkoplyas 6d62a21af7 tests for contacts events 2017-08-09 16:43:40 +03:00
Oskar Thorén db6b80d529 chat, protocol: Introduce Lamport clock semantics for message order
This commit ensures messages are ordered correctly when participants join and
leave a group chat. Specifically, the last received message will appear last.
Previously the user and chat clock was queried and updated in an ad hoc manner.
With this change there are only two clock changes to keep track of:

Sending messages:
time = time+1;
time_stamp = time;
send(message, time_stamp);

Receiving messages:
(message, time_stamp) = receive();
time = max(time_stamp, time)+1;

(See https://en.wikipedia.org/wiki/Lamport_timestamps)

Note that this means we can get rid of all the non-message clock queries and
updates.
2017-08-09 12:34:36 +03:00
Oskar Thorén b510488f11 fix #1050
Introduce a money namespace that solves a bunch of issues related to significant
numbers being preserved and converted correctly.
2017-08-07 13:55:22 +03:00
alwx abafa3308a Unit tests for input model 2017-08-02 17:03:11 +03:00
Andrey Shovkoplyas 3d05f99bd4 implemented fx handler, rewrite handlers using fx and cfx, optimized subscriptions, reorganized structure and renamed files, implemented re-frame-test and wrote some tests 2017-07-28 17:25:55 +03:00
Herich f5b0c0c368 chat, data, utils: add implementation of simple preview caching 2017-07-26 15:00:14 +03:00
Julien Eluard cdbabca9fe Multiple hit on save should not create multiple groups 2017-07-25 10:24:02 +03:00
Roman Volosovskyi be463e0947 messaging test 2017-07-18 08:41:03 +03:00
Roman Volosovskyi 23399c63e1 extract React Native dependencies 2017-07-17 11:38:48 +03:00
Julien Eluard 90d8b5c23c Fixes #1212 (#1249)
* Make sure suggestions properly popsup when command starts with space

* Added basic tests for splt-command-args

* Properly handle white spaces

* Added tests for commands with whitespaces
2017-06-26 13:45:49 +03:00
Gustavo Nunes a8a588bb70 Onboarding tests: fixed existing and added new 2017-02-08 17:01:14 +02:00
Roman Volosovskyi 8439407520 show connectivity issues & retry sending of phone/confirmation code to server if application is offline
Former-commit-id: 2580b0a9d9
2016-10-23 12:49:36 +03:00
Roman Volosovskyi e9e3dc3896 on boarding tests
Former-commit-id: a0912230d4
2016-07-27 16:08:53 +03:00
Roman Volosovskyi b9973cee6d cleanup
Former-commit-id: 62e68fc3da
2016-06-14 15:56:03 +03:00
Roman Volosovskyi 75649d46aa tests
Former-commit-id: 8474729695
2016-06-09 16:06:39 +03:00
Roman Volosovskyi 3ea8b2cb82 first unit test
Former-commit-id: 1766b1af12
2016-05-30 08:58:38 +03:00