John Roberts
90a18186d9
configurable smp servers ( #366 , #411 ); core: profile images ( #384 )
...
* core: configurable smp servers (#366 )
* core: update simplexmq hash
* core: update simplexmq hash (fix SMPServer json encoding)
* core: fix crashing on supplying duplicate SMP servers
* core: update simplexmq hash (remove SMPServer FromJSON)
* core: update simplexmq hash (merged master)
* core: profile images (#384 )
* adding initial RFC
* adding migration SQL
* update RFC
* linting
* Apply suggestions from code review
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
* refine RFC
* add avatars db migration to Store.hs
* initial chages to have images in users/groups
* fix protocol tests
* update SQL & MobileTests
* minor bug fixes
* add missing comma
* fix query error
* refactor and update functions
* bug fixes + testing
* update to parse base64 web format images
* fix parsing and use valid padded base64 encoded image
* fix typos
* respose to and suggestions from review
* fix: typo
* refactor: avatars -> profile_images
* fix: typo
* swap updateProfile parameters
* remove TODO
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
* ios, android: configurable smp servers (only model and api for android) (#392 )
* android: configurable smp servers (ui)
* fix thumb color, fix text field color in dark mode
* update simplexmq hash (configurable servers in master)
Co-authored-by: IanRDavies <ian_davies_@hotmail.co.uk>
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
2022-03-10 15:45:40 +04:00
Efim Poberezkin
c1c55ca700
deduplicate contact requests ( #287 )
...
* deprecate XContact
* XInfoId
* xInfoId tests
* merging
* saving on connection
* connectByAddress
* remove old connect
* deduplicate contact requests
* check on contact acceptance
* test
* rename response
* reuse CRContactRequestAlreadyAccepted
* Update src/Simplex/Chat.hs
* createConnReqConnection
* simplify controller logic
* store methods + profile change
* index
* more indices
* unXInfoId
* simplify
* XInfo with ID -> XContact
* sync reply to Connect when contact already exists
* update view for sync CRContactAlreadyExists command response
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
2022-02-13 09:19:24 +00:00
Evgeny Poberezkin
aef697e30a
make tests independent of JSON fields order ( #212 )
2022-01-17 12:24:55 +00:00
Evgeny Poberezkin
5a74b8066f
prepare v1 release ( #189 )
...
* update servers
* update version
* update simplexmq version
* update database file names
* update server fingerprints and simlexmq
* update simplexmq commit
* fix port in tests
* update tls fixtures (#193 )
* add -v cli option; print update instructions on -v and /v (#194 )
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
Co-authored-by: Efim Poberezkin <8711996+efim-poberezkin@users.noreply.github.com>
2022-01-11 21:23:57 +00:00
Evgeny Poberezkin
cc4fff0ae5
tests for JSON message encoding/decoding ( #190 )
...
* tests for JSON message encoding/decoding
* fix XContact parsing to allow absent field "content"
* update XContact JSON encoding
2022-01-11 12:27:57 +00:00
Evgeny Poberezkin
be537f3a24
update chat protocol to use JSON encoding for chat messages ( #182 )
...
* started chat protocol
* text message example
* events json
* same style comments
* jsonc
* num for rendering
* try to fix comment rendering
* revert num
* chat protocol: make msg params closer to types
* AppMessage type
* combine new and old simplexmq dependencies
* json parsers
* version-compatible types for connection requests
* more parsers
* remove import
* decode/encode from/to AppMessage
* make group invitation a property in params
* switch chat to the new agent
* remove "compatibility" attempt
* new JSON encoding for chat messages
* simplexmq from github
* update MsgContent name
Co-authored-by: Efim Poberezkin <8711996+efim-poberezkin@users.noreply.github.com>
2022-01-11 08:50:44 +00:00
Evgeny Poberezkin
24c62584fc
simplify chat protocol ( #74 )
...
* groups protocol and some group commands
* simplify chat message format, refactor types to include parsed message body
* disable chat test
2021-07-11 12:22:22 +01:00
Evgeny Poberezkin
2f604d91ba
use chat protocol and contacts in chat commands/messages ( #66 )
...
* chat types, chat protocol syntax idea
* chat message syntax, raw message type
* chat message format and parsing
* raw chat message parsing test
* add message parsing tests
* interpret RawChatMessage
* use chat message format when sending messages
* save contacts and related connections to DB (WIP)
* use contacts in all chat commands (add, connect, send, delete)
* use contacts when receiving messages and notifications
* handle contact not found error
* automatically accept connection when CONF is received from the agent
2021-07-04 18:42:24 +01:00