Commit graph

96 commits

Author SHA1 Message Date
Audric Ackermann
c22d7c2367 Merge branch 'clearnet' into mark-all-as-read-optimization 2022-09-30 10:55:06 +10:00
Audric Ackermann
d9e504afa0 Merge remote-tracking branch 'upstream/clearnet' into mark-all-as-read-optimization 2022-08-29 13:45:33 +10:00
Audric Ackermann
13bf0e073d feat: update design of the Notification Settings screen
the preview button is not linked yet
2022-08-22 16:09:34 +10:00
Audric Ackermann
e6cd277bd2 fix: allow non admin mods to delete message for deletion 2022-08-09 17:08:59 +10:00
Audric Ackermann
242d51ca8d
Id blinding + onionv4 + new endpoints for sogs and fileserver (#2347)
* Added Onionv4 support to file server, sogs and pn server
* Added blinded message support
* Updated endpoints for sogs and file server to remove legacy ones
2022-08-08 09:50:48 +10:00
Audric Ackermann
9251711fa5
fix: optmize markAllAsRead when no expiration timer
we basically do a single sql call to mark everything as read for that
conversation, force unreadCount to 0 and mention state to false, and
trigger read syncs if needed.

the optomization cannot work for conversation with expiration timer for
now
2022-05-20 13:19:48 +10:00
Audric Ackermann
0199e9e027
Merge pull request #2284 from ianmacd/pr22
Report number of deletions when a deletion operation completes.
2022-05-09 16:01:22 +10:00
Ian Macdonald
e0e8f8f444
Fix unfilled variable when user deletes messages only for himself. 2022-05-05 13:17:45 +02:00
Ian Macdonald
09be936aa4
Report number of deletions when a deletion operation completes. 2022-05-05 13:15:00 +02:00
Audric Ackermann
b93201fbe6
When deleting multiple messages, inform the user of the number
taken from #2263 by @ianmacd
2022-04-27 14:02:13 +10:00
Audric Ackermann
0ebc1d7e92
split attachmnent logic between what is used on main and renderer 2022-04-06 16:21:19 +10:00
Audric Ackermann
79bf0c53ee move libtextsecure/crypto.js to ts
used mostly for attachments encrypting before upload/decrypt and profile
encrypt/derypt
2022-03-30 09:18:09 +11:00
Audric Ackermann
5bc576249b move signal.js to TS 2022-03-30 08:53:08 +11:00
Audric Ackermann
6bd835dfc3
move storage.js to ts 2022-03-23 15:57:11 +11:00
Audric Ackermann
49bae1925d
open message request reset opened convo and is a settings itself 2022-03-15 11:04:19 +11:00
warrickct
e4f4328232 rename request evaluating function for clarity. Prevent disappearing messsages from being activated by request recipient before the request has been accepted. 2022-03-02 13:04:33 +11:00
warrickct
56c1a06a28 Adding rightclick accept/decline menu options for message requests. Adding hide menu item for message request banner. 2022-02-25 14:17:34 +11:00
warrickct
8dfd748ce0 adding conditional for only 1-1 convos to disallow disappearing messages. 2022-02-17 22:21:04 +11:00
warrickct
c0622d47f4 Disallow disappearing messages if convo is not approved by recipient. 2022-02-17 22:20:32 +11:00
warrickct
f5972a5d1c Calling setting convo isApproved. Removing some unnecessary conditionals. 2022-02-17 22:05:13 +11:00
warrickct
0db3c76756 Fixing linting errors 2022-02-15 13:59:58 +11:00
warrickct
c3d9912572 Adding handling of edge case for messaging clients without request approval update. 2022-02-14 23:41:08 +11:00
warrickct
ee9156d4f8 Merge clearnet into message-request-ui 2022-02-14 16:42:53 +11:00
warrickct
f93a2e5fad Adding more PR review changes. 2022-02-11 14:05:51 +11:00
warrickct
11e6d80419 minor renaming. 2022-02-10 22:26:55 +11:00
warrickct
d627b8e11d Requesting flow working with sending message as acceptance. 2022-02-10 16:49:56 +11:00
audric
247cb7c065 cleanup dependencies 2022-01-18 15:21:36 +11:00
audric
4b39b46b6a replace invalid unicode in filename 2022-01-14 11:03:22 +11:00
Audric Ackermann
c7565fe7b3 Move scale/resize and attachment logic to typescript 2022-01-12 17:01:32 +11:00
Audric Ackermann
38325215e6
Unban UI (#2091)
* adding basic functionaliy for unbanning a user

* merge ban and unban user dialog in to one dialog

Co-authored-by: warrickct <warrickct@gmail.com>
2021-12-16 15:04:26 +11:00
Audric Ackermann
28c7445dce
refactor most of the components to outside of their Session folder (#2072)
* refactor most of the components to outside of their Session folder

* finish moving overlay and memberListItem to react hook

* fix bug with kicked member len >2 not being displayed

also sort admins first in UpdateGroupMembers dialog

* fix admin leaving text of groupNotification

* add a useFocusMount hook to focus input fields on mount

* make click avatar convo item open only user dialog

* cleanup config default.json

* make sure to use convoController to build sync message

* disable showing pubkey on opengroups

* add a pause on audio playback

Fixes #2079
2021-12-14 15:15:12 +11:00
Audric Ackermann
651b1c4376
Fetch translations (#2056)
* show missed-call,started-call and answered call notification in chat

* fix types for createLastMessageUpdate

* show incoming dialog if we have a pending call when enable call receptio

* simplify a bit the avatar component

* move disableDrag to a custom hook

* speed up hash colors of avatarPlaceHolders

* fixup text selection and double click reply on message

* keep avatar decoded items longer before releasing memory

* add incoming/outgoing/missed call notification

also, merge that notification with the timer and group notification
component

* hangup call if no answer after 30sec

* refactor SessionInput using hook + add testid field for recovery

* disable message request feature flag for now

* fix merge issue

* force loading screen to be black instead of white

for our dark theme user's eyes safety

* add type for i18n to run update after crowdin  fetch with tools/updateI18nKeysType.py

* update to latest translations
2021-11-30 14:46:06 +11:00
Audric Ackermann
cf44896a03
Minor call tweaks (#2051)
* show missed-call,started-call and answered call notification in chat

* fix types for createLastMessageUpdate

* show incoming dialog if we have a pending call when enable call receptio

* simplify a bit the avatar component

* move disableDrag to a custom hook

* speed up hash colors of avatarPlaceHolders

* fixup text selection and double click reply on message

* keep avatar decoded items longer before releasing memory

* add incoming/outgoing/missed call notification

also, merge that notification with the timer and group notification
component

* hangup call if no answer after 30sec

* refactor SessionInput using hook + add testid field for recovery

* disable message request feature flag for now

* fix merge issue

* force loading screen to be black instead of white

for our dark theme user's eyes safety
2021-11-29 17:40:46 +11:00
warrickct
e32f20d8bc PR changes 2021-11-26 13:20:03 +11:00
warrickct
4576f3cb32 Merge branch 'clearnet' into message-requests 2021-11-24 16:25:07 +11:00
warrickct
9823a700e2 Addressing PR fixes 2021-11-24 11:14:24 +11:00
Audric Ackermann
6f3625f99c
move the state of calling to its own slice 2021-11-19 10:49:05 +11:00
Audric Ackermann
cca1b4dabe
add a button to start a video call 2021-11-08 15:33:49 +11:00
Audric Ackermann
f91ed7729b
cleanup SessionCompositionBox 2021-11-08 11:03:08 +11:00
Audric Ackermann
dfa04c68f4
fix emoji click on button while open closes it
Fixes #1980
2021-10-28 17:14:30 +11:00
Audric Ackermann
ce16066313
do not try to do an unsend request on a group swarm 2021-10-27 11:44:37 +11:00
Audric Ackermann
bb26680b75
unsend for me only on a closed group only deletes locally
also do not await request to PN server
2021-10-26 16:59:46 +11:00
Audric Ackermann
5d9565a559
fix menu action for unsending messages 2021-10-26 16:08:04 +11:00
Audric Ackermann
314b76388f
WIP 2021-10-25 17:24:37 +11:00
Audric Ackermann
0f2fcbb6e3
delete for opengroups is working 2021-10-25 17:04:51 +11:00
Audric Ackermann
844d3befef
tiny changes on the unsend logic 2021-10-15 11:53:44 +11:00
Audric Ackermann
4e30614077
disable unsend request on the UI for now (#1934)
* disable unsend request on the UI too

* do not stop propagation of events for message ctx menu
2021-09-20 17:00:54 +10:00
Warrick
1d459ba533
Unsend messages (only message hashes saving for now is enabled) (#1891)
* WIP unsending message.

* retrieving message with hash from db on receiving unsend request.

* outgoing messages hashes updated on message sent success

* unsend messaging

* unsend message - deleting messages and marking as isDeleted.

* add msg hash to unprocessed records.

* Message unsending working for closed groups provided the message has been updated with a hash from server.

* adding 2-stage confirmation modal for message deletion

* adding rendering of removed incoming messages, disabling rendering of unsent outgoing messages in coversation screen.

* Adding logging

* debugging.

* outgoing only saved for sync message instead of regular message.

* deleting locally

* adding post unsend deletioncode.

* starting adding feature flag.

* Added feature flag.

* addding mandatory messageHash  pollling pipeline methods swarm polling.

* Conversation list item message preview showing deletion placeholder text if deleted.

* add condition to drop unsend requests not send by message author

* refactoring deleteMessage. Saving response hash for closed group message sending

* running yarn ready

* removing logging.

* Adding PR fixes

* Minor changes and running yarn ready

* fix typo

* Moved feature flag to lokiFeatureFlags. Fixing linting errors


Co-authored-by: Audric Ackermann <audric@loki.network>
2021-09-20 13:47:59 +10:00
audric
f7b0c6c7e1 make conversation screen closer to mobile UI part1 2021-08-23 16:32:21 +10:00
audric
9e37985d03 enable no-unused local and imports and fix tslint 2021-08-12 14:48:18 +10:00