Commit Graph

279 Commits (9156ec83a76e136da7cb395834abc97b160ead07)

Author SHA1 Message Date
William Grant c9a8ea2b81 feat: removed MessageDetails and added MessageInfo
added other components
2 years ago
Audric Ackermann 84451399e3 Merge remote-tracking branch 'upstream/unstable' into closed-group-chunk1 2 years ago
William Grant 0212166fcc feat: moved disappearing logic to a feature folder
only moved types and timerOptions so far
2 years ago
Audric Ackermann d134da3421 chore: renamed ConfigurationSyncJob to UserSyncJob 2 years ago
William Grant 38a8012e10 refactor: providedexpirationtype to provideddisappearingmode 2 years ago
William Grant 250e3d0238 refactor: rename expirationType on convo to expirationMode
this means convo has expirationMode and messages have expirationType
2 years ago
William Grant cd2f51684d refactor: disappearingmessageconversationtype to disappearingmessageconversationmodetype 2 years ago
Audric Ackermann d12071f3c8 chore: big rename of convocontroller to convohub 2 years ago
William Grant c33eef0162 fix: sync messages now expire in 1on1s
fromConfig has been removed from updateExpireTimer
2 years ago
Audric Ackermann 1a18054fae feat: add bump of config hashes for groups when we have admin key 2 years ago
Audric Ackermann 197383a52f feat: move some the convomodel.get attributes to functions
this is because we need to be able to override what is returned by what
is in the redux lib slice if needed (libsession data overrides what is
in the DB for groupv3)
2 years ago
Audric Ackermann 46e3675c45 feat: add function to redux to grab group detail outside of store 2 years ago
William Grant 85f270b67a Merge branch 'unstable' into userconfig_disappearingmessage 2 years ago
Audric Ackermann 5b2580c48d feat: add poller changes and closed group keypair gen 2 years ago
Audric Ackermann 53fca2a4e9 fix: text for note to self delete from all my devices 2 years ago
Audric Ackermann bc081df17d Merge branch 'unstable' into feature/ses-476/remove-profile-picture 2 years ago
William Grant 41af1e7865 Merge branch 'unstable' into userconfig_disappearingmessage 2 years ago
Audric Ackermann d43d6abbae chore: replace tslint with eslint and fix linting issues 2 years ago
William Grant ed2a372ca3 Merge branch 'unstable' into feature/ses-145/leave-conversation-update 2 years ago
William Grant b59f1bf445 feat: desktop now supports avatar being removed via sync configuration message
disabled buttons while loading
2 years ago
William Grant 84d3d5b1b4 feat: small refactoring 2 years ago
William Grant cb7c36e2e6 feat: initial remove profile work done 2 years ago
Audric Ackermann 9a7ef4d373 Merge branch 'unstable' into userconfig_disappearingmessage 2 years ago
Audric Ackermann 594eee698b Merge remote-tracking branch 'upstream/clearnet' into unstable 2 years ago
William Grant 0e4a628c20 feat: use getNowWithNetworkOffset instead of Date.now 2 years ago
William Grant 5f8cb35f8a feat: make sure changes are needed before calling commit() 2 years ago
William Grant 1c8ae3650e fix: pass yarn ready 2 years ago
William Grant fcadc8df07 fix: cleanup 2 years ago
William Grant 45b904ce8c feat: if we fail to leave a conversation then change to delete conversation and remove the group from the db 2 years ago
William Grant ebf9db67a3 feat: when hiding note to self it shouldn't delete the messages
added a keepMessages option to deleteConvoInitialChecks
2 years ago
William Grant f909f5d5b7 fix: close SessionConfirm modal as soon as user confirms that they want to leave a conversation 2 years ago
William Grant d782a0214e feat: dont save interaction error messages in communities 2 years ago
William Grant abfc638c2c fix: cleanup 2 years ago
William Grant e7f3bb5abf fix: if there is no last message, we still want to display the interaction status
loading state shows correctly in all cases, cleanup as well
2 years ago
William Grant 24776c0d5c feat: moved convo model interaction props into the lastMessage logic
this makes it easier to interact with since if an interaction fails we save it to the db as a message
2 years ago
William Grant 027b412fb2 feat: save conversation interaction errors to a message history 2 years ago
William Grant b67d52382d feat: updated right panel leave button
added community leave failed text, handle leaving conversation with no name
2 years ago
William Grant 38c6cb0d7d feat: finished note to self and 1o1 conversation leaving and hiding 2 years ago
William Grant 1df57140ff feat: handle closed group admin separately
update confirmation action to use leave text, left code for the closed groups rebuild
2 years ago
William Grant de614109d0 feat: added lastMessageId to convo model to uniquely identify a lastMessage 2 years ago
William Grant 96fcbf1345 feat: added start enum to interaction status
improved error handling, consolidated types
2 years ago
William Grant 454e382ce4 feat: moved interaction logic to use conversation model
added fail text color to interaction item
2 years ago
William Grant 8a7007e7c3 feat: added interaction properties to conversation modal and started UI changes in ConversationListItem based on confirming an interaction
still to to port the original modal checks to use thd convo props
2 years ago
William Grant c492fad4ee feat: added support for tracking the confirmation process status and its type
attempting to show this status inside of the ConversationListItem message section, show confirmation modal when leaving private chats
2 years ago
Audric Ackermann 0fa58a5654 chore: fix compilation issues after conflicts resolution 2 years ago
Audric Ackermann 4637f4609a Merge remote-tracking branch 'yougotwill/disappearing_messages' into userconfig_disappearingmessage 3 years ago
William Grant fb51b20096 fix: cleanup TODOS 3 years ago
William Grant d706ecdead fix: show authorName in reply ui 3 years ago
William Grant 6b2047b5c6 fix: Show correct attachment type in reply ui 3 years ago
Audric Ackermann 2068737cdd fix: break down deleteContact based on convo type 3 years ago
Audric Ackermann 2a4bbbd587 feat: add the deleteContact and deleteConversation only menu items 3 years ago
Audric Ackermann 6f6620f622 fix: skip new group messages when receved after group was removed 3 years ago
Audric Ackermann bac2887c28 fix: update with latest libsession util 3 years ago
Audric Ackermann 44483b7d23 fix: use releaseFeature from disappearing message PR as featureFlag 3 years ago
Audric Ackermann 8edb1275c2 fix: keep updating dumps even if user config feature is off 3 years ago
Audric Ackermann 051c4bb262 fix: merge the confSyncDumpJob into the confSyncJob 3 years ago
William Grant 97ecc9e521 feat: fixed double expiration update message issue
started creating an inheritable expiration message class, improved start triggering logic
3 years ago
William Grant ee6607b96a feat: added expirationType and expireTimer to content message and updated message pipeline
this includes sync messages and updating the protobuf, haven't tested closed groups
3 years ago
William Grant 0700ac4813 fix: moved disappearing message types to utils 3 years ago
William Grant b12d086b22 feat: DisappearingMessageType -> DisappearingMessageConversationType
this is more explicit and allows use to use DisappearingMessageType in the message model
3 years ago
William Grant 30196a131a feat: added basic support for different disappearing message modes
added expirationType and lastDisappearingMessageChangeTimestamp to conversations table, left a few comments for future work
3 years ago
Audric Ackermann 0e286142f1 chore: add a redux settings slice, currently outdated banner inc 3 years ago
Audric Ackermann cbffc29950 fix: run tests for libsession-util integration and fix issue 3 years ago
Audric Ackermann 3ecc89fab3 Merge remote-tracking branch 'upstream/master' into onboarding 3 years ago
Audric Ackermann 55a2767fce feat: do not approve a convo before sending the first message
but still sync it's state through the createdAt with libsession util
3 years ago
Audric Ackermann faeb95fefd feat: add block/decline logic to msg request & wrapper 3 years ago
Audric Ackermann ef6d9f1d51 feat: add empty states for each types of convo 3 years ago
Audric Ackermann 0050352470 chore: move selected convo selectors to another file 3 years ago
Audric Ackermann 1c50aacc34 chore: remove groupModerators sogs from the db, store in redux only 3 years ago
Audric Ackermann bf2456df8e chore: do not store mentionedUs and unreadCount as attribute in convo 3 years ago
Audric Ackermann c4e17d0825 fix: add mgmt of members in user groups wrapper 3 years ago
Audric Ackermann bc905bdba1 feat: start of community handling in libsession util
also remove tracking of hashes for config namespaces
3 years ago
Audric Ackermann 3c58f9c1e4 feat: add a hidden flag for convos and use it with the contactswrapper 3 years ago
Audric Ackermann f88acdb567 feat: remove blocked group tracking separately from the pubkeys 3 years ago
mdPlusPlus 1d6ed17ac7 Fix typos via codespell 3 years ago
Audric Ackermann 4bfcf91193 fix: add return types for libsession wrapper functions 3 years ago
Audric Ackermann 9cf1419ca5 feat: add first try to build SharedConfigMessages 3 years ago
Audric Ackermann d1cefd4729 feat: add contacts & user profile handling of incoming messages 3 years ago
Audric Ackermann 68852a9e63 chore: move syncUtils to its own folder 3 years ago
Audric Ackermann 6d1b406c85 fix: add namespace to all sending message calls 3 years ago
Audric Ackermann d7bcf1026f fix: refactor snodeRPC to use snode batching 3 years ago
William Grant ddfaad5220 fix: added a unique shadow variable for the scroll button 3 years ago
Audric Ackermann e3006ae157 fix: do not return updated messages from markAllRead if not needed 3 years ago
Audric Ackermann c22d7c2367 Merge branch 'clearnet' into mark-all-as-read-optimization 3 years ago
Audric Ackermann d9e504afa0 Merge remote-tracking branch 'upstream/clearnet' into mark-all-as-read-optimization 3 years ago
Audric Ackermann 13bf0e073d feat: update design of the Notification Settings screen
the preview button is not linked yet
3 years ago
Audric Ackermann e6cd277bd2 fix: allow non admin mods to delete message for deletion 3 years ago
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
3 years ago
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
4 years ago
Audric Ackermann 0199e9e027
Merge pull request #2284 from ianmacd/pr22
Report number of deletions when a deletion operation completes.
4 years ago
Ian Macdonald e0e8f8f444
Fix unfilled variable when user deletes messages only for himself. 4 years ago
Ian Macdonald 09be936aa4
Report number of deletions when a deletion operation completes. 4 years ago
Audric Ackermann b93201fbe6
When deleting multiple messages, inform the user of the number
taken from #2263 by @ianmacd
4 years ago
Audric Ackermann 0ebc1d7e92
split attachmnent logic between what is used on main and renderer 4 years ago
Audric Ackermann 79bf0c53ee move libtextsecure/crypto.js to ts
used mostly for attachments encrypting before upload/decrypt and profile
encrypt/derypt
4 years ago
Audric Ackermann 5bc576249b move signal.js to TS 4 years ago
Audric Ackermann 6bd835dfc3
move storage.js to ts 4 years ago
Audric Ackermann 49bae1925d
open message request reset opened convo and is a settings itself 4 years ago
warrickct e4f4328232 rename request evaluating function for clarity. Prevent disappearing messsages from being activated by request recipient before the request has been accepted. 4 years ago
warrickct 56c1a06a28 Adding rightclick accept/decline menu options for message requests. Adding hide menu item for message request banner. 4 years ago
warrickct 8dfd748ce0 adding conditional for only 1-1 convos to disallow disappearing messages. 4 years ago
warrickct c0622d47f4 Disallow disappearing messages if convo is not approved by recipient. 4 years ago
warrickct f5972a5d1c Calling setting convo isApproved. Removing some unnecessary conditionals. 4 years ago
warrickct 0db3c76756 Fixing linting errors 4 years ago
warrickct c3d9912572 Adding handling of edge case for messaging clients without request approval update. 4 years ago
warrickct ee9156d4f8 Merge clearnet into message-request-ui 4 years ago
warrickct f93a2e5fad Adding more PR review changes. 4 years ago
warrickct 11e6d80419 minor renaming. 4 years ago
warrickct d627b8e11d Requesting flow working with sending message as acceptance. 4 years ago
audric 247cb7c065 cleanup dependencies 4 years ago
audric 4b39b46b6a replace invalid unicode in filename 4 years ago
Audric Ackermann c7565fe7b3 Move scale/resize and attachment logic to typescript 4 years ago
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>
4 years ago
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
4 years ago
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
4 years ago
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
4 years ago
warrickct e32f20d8bc PR changes 4 years ago
warrickct 4576f3cb32 Merge branch 'clearnet' into message-requests 4 years ago
warrickct 9823a700e2 Addressing PR fixes 4 years ago
Audric Ackermann 6f3625f99c
move the state of calling to its own slice 4 years ago
Audric Ackermann cca1b4dabe
add a button to start a video call 4 years ago
Audric Ackermann f91ed7729b
cleanup SessionCompositionBox 4 years ago
Audric Ackermann dfa04c68f4
fix emoji click on button while open closes it
Fixes #1980
4 years ago
Audric Ackermann ce16066313
do not try to do an unsend request on a group swarm 4 years ago
Audric Ackermann bb26680b75
unsend for me only on a closed group only deletes locally
also do not await request to PN server
4 years ago
Audric Ackermann 5d9565a559
fix menu action for unsending messages 4 years ago
Audric Ackermann 314b76388f
WIP 4 years ago
Audric Ackermann 0f2fcbb6e3
delete for opengroups is working 4 years ago
Audric Ackermann 844d3befef
tiny changes on the unsend logic 4 years ago
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
4 years ago
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>
4 years ago
audric f7b0c6c7e1 make conversation screen closer to mobile UI part1 4 years ago
audric 9e37985d03 enable no-unused local and imports and fix tslint 4 years ago
audric ab8b6e85b4 Merge remote-tracking branch 'upstream/clearnet' into network-clear-all 4 years ago
audric bea704ecf0 bump react to 17 4 years ago
Brice-W fbe9f19c81 typo 4 years ago
Brice-W d8fa73d393 lint 4 years ago
Brice-W 2c6821097d adding Ban user and delete all his messages to the menu for moderators 4 years ago
Warrick Corfe-Tan 0c3ca8e5db Merge branch 'clearnet' into network-clear-all 4 years ago
Warrick Corfe-Tan ec447b2e2e network clear all WIP 4 years ago
Audric Ackermann 61277a5397
fix replying to message focus composition box
Relates #1808
4 years ago
audric fce86989f0 make sure profileKey is a hex string in all convos 4 years ago
Brice-W e31b219bd4 fix 4 years ago
Brice-W 54a2eef700 change the way skipTimerInit is defined in MessageModel 4 years ago
Audric Ackermann a54345a42e
put back quote a message logic with hook 4 years ago
Audric Ackermann 16d34a7137
moved conversations reducer to createSlice 4 years ago
Audric Ackermann 63b81b4c8e
cleanup SessionMessageList p1 4 years ago
Audric Ackermann f0fad6edfa
uniformized props for Message 4 years ago
Audric Ackermann e451cdd78f
rename message props to messageProps 4 years ago
Audric Ackermann 6deb97dbc0
WIP 4 years ago