* ios: fix callkit calls via NSE
* comments
* more reliable NSE start
* remove public logs, different RTS parameters for NSE
* only suspend NSE if we have chat controller, to avoid crashes if suspension attempted without controller created
* comments
* fix
* simplify
* core: forward notifications about message processing (for iOS notifications)
* simplexmq
* the option to keep database key, to allow re-opening the database
* export new init with keepKey and reopen DB api
* stop remote ctrl when suspending chat
* ios: close/re-open db on suspend/activate
* allow activating chat without restoring (for NSE)
* update NSE to suspend/activate (does not work)
* simplexmq
* suspend chat and close database when last notification in the process is processed
* stop reading notifications on message markers
* replace async stream with cancellable concurrent queue
* better synchronization of app and NSE
* remove outside of task
* remove unused var
* whitespace
* more debug logging, handle cancelled read after dequeue
* comments
* more comments
* android: keep screen on while playing/recording media
* ios: keep screen on while playing/recording media
* different implementation on ios
* Revert "android: keep screen on while playing/recording media"
This reverts commit d291f006e9.
* different implementation on android
* refactor
---------
Co-authored-by: Avently <avently@local>
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
* ios: block members (WIP)
* CIBlocked, blocking api
* show item as blocked
* show blocked and merge multiple deleted items
* update block icons
* split sent and received deleted to two categories
* merge chat feature items, refactor CIMergedRange
* merge feature items, two profile images and names on merged items
* ensure range is withing chat items range
* merge group events
* fix/refactor
* make group member changes observable
* exclude some group events from merging
* fix states not updating and other fixes
* load list of members when tapping profile
* refactor
* fix incorrect merging of sent/received marked deleted
* fix incorrect expand/hide on single moderated items without content
* load members list when opening member via item
* comments
* fix member counting in case of name collision
* android, desktop: show alert after saving profile with existing name
* ios: show alert after saving profile with existing name
* return statements
* better way of showing alert
---------
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
* core, ui: prevent old sent items re-added to chat, and "new" status overriding "sent"
* clear item statuses when changing current chat
* remove iOS hack
* remote state/published from chatItemStatuses
* ios: close database connections when app is terminating
* update
* remove ()
* close when suspended too
* additional check
* fix
* refactore
* reset "terminating" flag
* ui: types and stubs to encrypt local files
* ios: encrypt automatically received images in local storage
* encrypt sent images, marked to be received via NSE
* ios: encrypt sent and received local voice files
* encrypt sent and received local files
* fix NSE
* remove comment
* decrypt files in background thread
* mobile: remove most user data from responses, to reduce noice in errors/console
* small change for desktop
---------
Co-authored-by: Avently <7953703+avently@users.noreply.github.com>