Commit Graph

1195 Commits

Author SHA1 Message Date
Evgeny
1306df81e4 core: role for full delete preference (#5572)
* core: role for full delete preference

* fix
2025-01-27 07:50:58 +00:00
Evgeny
f9a4445e1a core: batch connection deletion events (#5573)
* core: batch connection deletion events

* simplexmq
2025-01-25 14:18:24 +00:00
spaced4ndy
d86e6b35be test: track agent query plans (#5571) 2025-01-24 17:49:31 +04:00
Evgeny
f3664619ec test: track query plans (#5566)
* test: track query plans

* all query plans

* fix postgres build
2025-01-24 09:44:53 +00:00
spaced4ndy
9ccea0dc50 core: get group history faster (#5562)
* core: get group history faster

* revert join, add index (fix test)

* fix postgres compilation

* fix postgres schema
2025-01-22 19:33:54 +00:00
spaced4ndy
8e609ac507 core: don't subscribe to deleted/left groups, read less data for groups on subscription (#5552) 2025-01-22 12:35:43 +04:00
Evgeny
7e864f9178 core, ui: support chat item TTL per chat and group aliases (#5415)
* core: support chat item TTL per chat

* ios: UI mockup

* core: chat time to live and group local alias support (#5533)

* functions and type placeholders

* simplify

* queries to make tests pass

* set chat queries

* fetch queries

* get local aliases for groups

* local alias support for groups

* simplify

* fix tests

* fix

---------

Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com>

* migration

* add test for expiration

* expireChatItems

* refactor queries, read objects inside the loop

* add groupId to query

* fix updateGroupAlias

* ios group alias

* ttl

* changes

* fixes and test

* new types for ttl

* chat and groups ttl in ios

* accurate alert

* label

* progress indicator, disable interactions while api running

* just call expire chat items

* android, desktop: add local alias to groups (#5544)

* android, desktop: add local alias to groups

* different placeholder for chats vs contacts

* improvements and fixes

* only expire chat items, not all items, when chat ttl changes

* refactor, fix conditions

* refactor

* refactor ChatTTLOption

* text

* fix

* make ttl state

* fix crash/remove warnings

* fix for current?

---------

Co-authored-by: Diogo <diogofncunha@gmail.com>
2025-01-20 18:06:00 +00:00
spaced4ndy
20fa30eacc core: Mobile.hs postgres interface (#5545)
* core: Mobile.hs postgres interface

* sqlite

* fix

* errors

* postgres

* rename

* rename, refactor

* merge files

* rename

* update simplexmq

---------

Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com>
2025-01-20 17:41:48 +04:00
Evgeny Poberezkin
830838fc4c cli: require single quotes around names with commas (fixes names in bot parameters) 2025-01-17 13:38:28 +00:00
spaced4ndy
d238a3c18f core: update simplexmq (reopenStore), fix postgres compilation (#5543) 2025-01-17 17:14:33 +04:00
Evgeny
a59dea27b9 core: support names with spaces in bot parameters (#5542) 2025-01-17 12:09:08 +00:00
Evgeny
951156f7fb directory: process group deletion correctly, group of owners (#5540)
* directory: process group deletion correctly, command to invite owners of listed groups to the group of owners

* dont invite to owners group twice
2025-01-17 10:32:57 +00:00
Evgeny
27481116f0 core: 6.3.0.1 (simplexmq 6.3.0.1) 2025-01-13 18:59:33 +00:00
Evgeny Poberezkin
49bf3cc673 Merge branch 'stable' 2025-01-13 17:42:14 +00:00
Diogo
0d44e9f0f5 core, ui: clean media filename on forwards (#5522)
* core, ui: clean media name on forwards

* fix forward tests for new jpg files format
2025-01-13 16:51:15 +00:00
Evgeny
db8f33debe core: add index to load chats faster (#5521)
* core: add index to load chats faster

* schema

* revert query (sqlite)

* Revert "revert query (sqlite)"

This reverts commit 194a48d61f.

---------

Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com>
2025-01-13 14:06:12 +00:00
Stanislav Dmitrenko
ef72d8e446 ui: open links from chat list with confirmation (#5519)
* ui: open links from chat list with confirmation

* appSettings

* ios

* core: migrate setting

* ios icon

* android icon

---------

Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com>
2025-01-13 12:46:42 +00:00
Evgeny Poberezkin
daea3b1056 Merge branch 'stable' 2025-01-13 11:21:24 +00:00
Evgeny Poberezkin
d287df2640 core: fix ghc 8.10.7 import 2025-01-13 00:45:36 +00:00
Evgeny Poberezkin
9a736b6417 core: 6.2.4.0 2025-01-12 21:58:16 +00:00
Evgeny
eacae74fed core, ui: errors for blocked files and contact addresses (#5510)
* core, ui: errors for blocked files and contact addresses

* android

* iOS: How it works, stub for blog post

* android: blocked errors WIP

* android: alert with button

* update

* fix encoding

* nix

* simplexmq
2025-01-12 21:25:25 +00:00
Evgeny
c8c6a832dd core: fix report count when loading chat (#5505)
* core: fix report count when loading chat

* remove "deleted" parameter from api
2025-01-10 19:41:01 +00:00
Evgeny Poberezkin
5fcf5c2cf8 Merge branch 'stable' 2025-01-10 13:59:21 +00:00
Evgeny Poberezkin
3f116c01d3 core: fix encoding 2025-01-10 13:58:23 +00:00
spaced4ndy
e05a35e26e core: support postgres backend (#5403)
* postgres: modules structure (#5401)

* postgres: schema, field conversions (#5430)

* postgres: rework chat list pagination query (#5441)

* prepare cabal for merge

* restore cabal changes

* simplexmq

* postgres: implementation wip (tests don't pass) (#5481)

* restore ios file

* postgres: implementation - tests pass (#5487)

* refactor DB options

* refactor

* line

* style

* style

* refactor

* $

* update simplexmq

* constraintError

* handleDBErrors

* fix

* remove param

* Ok

* case

* case

* case

* comment

---------

Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com>
2025-01-10 11:27:29 +00:00
Evgeny
c25d0ea224 directory: option to run service as CLI (#5494)
* directory: option to run service as CLI

* support muting groups when joining

* fix test
2025-01-09 15:58:47 +00:00
Evgeny Poberezkin
146c968a79 Merge branch 'stable' 2025-01-08 22:32:24 +00:00
Evgeny
bcb7c8bd7b core: do not include reports in group history (#5491) 2025-01-08 22:13:43 +00:00
Evgeny Poberezkin
105d188e76 Merge branch 'stable' 2025-01-08 18:18:21 +00:00
Evgeny
569832c8de core: rfc, protocol and types for user reports (#5451)
* core: rfc, protocol and types for user reports

* add comment

* rfc

* moderation rfc

* api, types

* update

* typos

* migration

* update

* report reason

* query

* deleted

* remove auto-accepting conditions for SimpleX Chat Ltd

* api, query

* make indices work

* index without filtering

* query for unread

* postgres: rework chat list pagination query (#5441)

* fix query

* fix

* report counts to stats

* internalMark

* fix parser

* AND

* delete reports on event, fix counters

* test

* remove reports when message is moderated on sending side

---------

Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com>
2025-01-08 09:42:26 +00:00
spaced4ndy
8dc29082d5 core: fix auto-accepting conditions for simplex operator (#5489) 2025-01-08 09:31:32 +00:00
Evgeny Poberezkin
912aaa2741 Merge branch 'stable' 2025-01-06 20:18:00 +00:00
Evgeny
e3e5d9646c core: fix delete api #5484 2025-01-06 20:14:31 +00:00
Evgeny Poberezkin
8b5bc44106 core: remove duplicate check when sending message 2025-01-04 19:18:55 +00:00
Evgeny Poberezkin
95b19a4947 Merge branch 'stable' 2025-01-04 19:17:19 +00:00
Evgeny
c9f6f3c053 core: api and protocol support for reporting messages to group moderators (#5469)
* core: api and protocol support for reporting messages to group moderators

* moderator role

* delete mode

* remove auto-accepting conditions for SimpleX Chat Ltd

* mark as deleted locally

* ui: delete mode type

* store msg_content_tag with chat items, support moderator option on receiving side

* report API

* send reports only to moderators that support them, fail if none support

* fix tests

* test

* remove comment

* revert version

* do not build ghc8107 in stable branch

* skip job

* fix condition

* remove condition

* condition

* exit

* update
2025-01-04 18:33:27 +00:00
Evgeny
206f7898c3 cli: option to disable vacuum on migration (#5446)
* cli: option to disable vacuum on migration

* update simplexmq

* mobile options

* use option in test
2024-12-28 22:14:06 +00:00
Evgeny
d37d309f85 core: update simplemq (with PostgreSQL support) (#5444) 2024-12-28 12:35:34 +00:00
Evgeny Poberezkin
fc7f509364 core: 6.3.0.0 (simplexmq 6.3.0.0) 2024-12-26 14:12:51 +00:00
Evgeny Poberezkin
90c15ee07d Merge branch 'stable' 2024-12-25 08:18:59 +00:00
Evgeny Poberezkin
790b0f315e core: 6.2.2.0 (simplexmq: 6.2.2.0) 2024-12-24 22:01:55 +00:00
Evgeny
6218896753 core: correct order or migrations (#5422) 2024-12-24 17:57:41 +00:00
Evgeny Poberezkin
e9bd7200c6 Merge branch 'stable' 2024-12-24 15:24:13 +00:00
Evgeny
e4044f6211 core: fix operator conditions query (#5420)
* logs

* logs2

* logs3

* logs4

* logs5

* fix

* update schema

* migration

* fix migration
2024-12-24 14:13:47 +00:00
spaced4ndy
00973d6e13 core: split Chat.hs module (#5397) 2024-12-20 16:54:24 +04:00
Diogo
fcb2d1dbac core, ios: chat tags (#5367)
* types and db

* migration module

* chat tag

* store method proposal

* profiles build

* update type

* update return type

* building

* working api

* update

* refactor

* attach tags to contact

* simplify

* attach chat tags to group info

* get chat tags with supplied user id

* get tags fix

* ios: chat tags poc (#5370)

* ios: chat tags poc

* updates to sheet

* temporary display for other option on swipe

* sheet height

* only show preset when it has matches

* changes

* worst emoji picker ever

* simplify tag casts and collapse

* open on create tag if no tags

* simple emoji text field

* nice emoji picker

* dismiss sheets on tag/untag

* semibold selection

* all preset tag and change collapsed icon on selection

* default selected tag (all)

* only apply tag filters on empty search

* + button when no custom lists

* reset selection of tag filter on profile changes

* edit tag (broken menu inside swiftui list)

* create list to end of list

* swipe changes

* remove context menu

* delete and edit on swipe actions

* tap unread filter deselects other filters

* remove delete tag if empty

* show tag creation sheet when + button pressed

* in memory tag edit

* color, size

* frame

* layout

* refactor

* remove code

* add unread to same unit

* fraction on long press

* nav fixes

* in memory list

* emoji picker improvements

* remove diff

* secondary plus

* stop flickering on chat tags load

* reuse string

* fix reset glitches

* delete destructive

* simplify?

* changes

* api updates

* fix styles on list via swipe

* fixed untag

* update schema

* move user tags loading to get users chat data

* move presets to model

* update preset tags when chats are updated

* style fixes and locate getPresetTags near tags model

---------

Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com>

* deleted contacts and card should not match contact preset

* fix update presets on chat remove

* update migration indices

* fix migration

* not used chat model

* disable button on repeated list name or emoji

* no chats message for search fix

* fix edits and trim

* error in footer, not in alert

* styling fixes due to wrong place to attach sheet

* update library

* remove log

* idea for dynamic sheet height

* max fraction 62%

* minor fixes

* disable save button when no changes and while saving

* disable preset filter if it is no longer shown

* remove comments from schema

* fix emoji

* remove apiChatTagsResponse

* always read chat tags

* fix

---------

Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com>
Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com>
2024-12-19 10:48:26 +00:00
Evgeny
6bae86d93b core: reduce simplexmq modules used in the client (#5368)
* core: reduce simplexmq modules used in the client

* remove websockets from simplexmq

* simplexmq
2024-12-14 16:10:14 +00:00
Evgeny Poberezkin
cbb3da8f83 core: 6.2.0.7 (simplexmq: 6.2.0.7) 2024-12-07 14:40:35 +00:00
Evgeny Poberezkin
9b82cc3303 core: fix feature items when updating preferences in business chats 2024-12-06 10:18:48 +00:00
Evgeny
60e0e454e8 core: only update business chat preferences (#5325)
* core: only update business chat preferences

* rework

* migration

* test, bump protocol version

* fix tests
2024-12-05 18:32:00 +00:00