Commit Graph

693 Commits (53e579427a515318e3041bc40013e5d71a206c7b)

Author SHA1 Message Date
Audric Ackermann 8b7ce7f3be Merge remote-tracking branch 'yougotwill/userconfig_disappearingmessage' into closed-group-chunk2 1 year ago
Audric Ackermann 2c479eb8d5 fix: make fileserver request retry 1 year ago
Audric Ackermann d839ff936d chore: resolve compilation errors 1 year ago
Audric Ackermann 6d81f5ff36 Merge remote-tracking branch 'yougotwill/userconfig_disappearingmessage' into closed-group-chunk2 1 year ago
Audric Ackermann 9e0a984297 fix: make DataExtractionNotification msg stay in swarm for 14d 1 year ago
Audric Ackermann 3a26285667 fix: make group control message not expire 1 year ago
Audric Ackermann e03c3ce1f3 test: fix unit tests 1 year ago
Audric Ackermann f6cd12d599 fix: use at least 2 hashes for the update_expiries too
until the storage server release is live we need this workaround
1 year ago
Audric Ackermann 744283fc56 fix: changed some message control to not expire
still some to discuss with the team
1 year ago
Audric Ackermann 5b704ebdc7 fix: bug with updatelastmessage not resetting when no msgs
also make fix the DaS expires_at so destroyExpiredMessages finds it
1 year ago
Audric Ackermann bd7c181e1e chore: incoming group update message need their own expireTimer
we do not trust the setting from the convo anymore
1 year ago
Audric Ackermann b61745fd94 fix: use DaR ttl for synced message store request
removing one request at a time
1 year ago
Audric Ackermann 5cfbb8405c fix: use expiry from swarm to update readAt & expiresAt for msg 1 year ago
Audric Ackermann 82c6f0897b fix: add jobs for expiry update & expiry fetch 1 year ago
Audric Ackermann 98fd834367 fix: already read DaR messages start with right time left on receive 1 year ago
Audric Ackermann 19e9e0311e feat: add cleanup of old expire update in history
we only keep one from each sender
1 year ago
Audric Ackermann 543c80bbe3 fix: add most of new designs (own setting) for disappear v2 messages 1 year ago
Audric Ackermann ad9fa6dbee chore: remove lastChangetimestmap and add explciit expiretype and type
on the messages creation
1 year ago
Audric Ackermann d1068983bb fix: broken state adding lastDisappearingMessage to chatmsg 2 years ago
Audric Ackermann e5c76d3b70 feat: group message requests kind of working
still need to have them visible in the msg request only
2 years ago
Audric Ackermann 23998065ea fix: address PR reviews 2 years ago
Audric Ackermann b259d18443 fix: add still broken promote handling with set_sig_keys 2 years ago
Audric Ackermann 08c5f76a15 fix: store envelopetimestamp in cache, and make sure we use network one
everywhere
2 years ago
Audric Ackermann 93d87d82ae chore: renamed getnowwithnetworkoffset to now() 2 years ago
Audric Ackermann 9595f09085 fix: add setadmin on promote accepts
also sign/verify group update messages
2 years ago
Audric Ackermann 6e4052c4ab fix: fix typo pushing new messages to redux store 2 years ago
Audric Ackermann 16e7ee1cd6 feat: make groupv2 messages skip cache
also add group members change
2 years ago
Audric Ackermann 7d5b660bc1 fix: start timer on message even if message already exists 2 years ago
Audric Ackermann 5fc234ee16 fix: expiration update to off expire with previous expiration settings 2 years ago
William Grant 78ecefa696 fix: off control msgs expire on the last setting 2 years ago
Audric Ackermann dbe94f2293 feat: added strings for groupv2 control message and components for them 2 years ago
William Grant 0bb72fc1a1 feat: updated getPropsForMessageDetail
attachments now have fileSize, url and screenshots and removed contacts
2 years ago
William Grant 1f52b9620b feat: wip work 2 years ago
Audric Ackermann 0fbb0cc852 chore: merge ReceiptMessage and readReceiptMessage into one 2 years ago
William Grant a37c8eaf13 fix: merge now returns good hashes
we calc the latestEnvelopeTimestamp and use for disappearAfterRead
2 years ago
William Grant 0796460d57 fix: comment typos 2 years ago
William Grant 04c3f69398 refactor: export functions from an object for stubbing
for disappearing messages index file
2 years ago
William Grant bb6e09de0a feat: cleaned up wip logs 2 years ago
Audric Ackermann b0e38670ab chore: rename all groupv3 to groupv2 2 years ago
William Grant f43dc13403 chore: made note about the hasOutdatedClient prop
we will remove it when we remove the legacy code
2 years ago
Audric Ackermann 84451399e3 Merge remote-tracking branch 'upstream/unstable' into closed-group-chunk1 2 years ago
William Grant 40014544d1 fix: closed group groupId is now PubKey only 2 years ago
William Grant a459bff86c fix: more comment cleanup 2 years ago
William Grant 1d7380a254 refactor: rename expirationLength
to expirationDurationMs
2 years ago
William Grant f3b4b6f862 refactor: isDisappearing to matchesDisappearing
cleaned up some comments
2 years ago
William Grant 8d9fc33180 fix: remove unnecessary async on markReadNoCommit 2 years ago
William Grant 7b8d1ed2f7 fix: replace backbone get method
for lastDisappearingMessageChangeTimestamp
2 years ago
William Grant 5f3a0899f5 feat: moved remaining code into feature folder
also separated out legacy functions
2 years ago
William Grant 0212166fcc feat: moved disappearing logic to a feature folder
only moved types and timerOptions so far
2 years ago
William Grant cafa9d80ec fix: remove all unneeded tslint comments
fixed some eslint errors
2 years ago
William Grant 06099966b0 fix: make sure to use convo getters
instead of backbone get function
2 years ago
Audric Ackermann d134da3421 chore: renamed ConfigurationSyncJob to UserSyncJob 2 years ago
William Grant 12a29f718a feat: updateExpireTimer arg shouldCommitMessage
when testing we dont want to commit the timer update message
2 years ago
William Grant 6f78de0ed3 feat: made ExpirationTimerUpdate type 2 years ago
William Grant 769808bd5c test: finished changeToDisappearingMessageType tests 2 years ago
William Grant 37bdd08aca fix: correct getter region comments 2 years ago
William Grant caf39d661c feat: commit disappearing remote changes to db 2 years ago
William Grant 27a634b268 feat: updateExpireTimer now returns success
we use this to decide on commiting updates from sync messages to the db
2 years ago
William Grant 5b7afe0a29 fix: disappear synced settings updates
need to trigger the expirationStartTimestamp manually
2 years ago
William Grant bb646ed3b9 refactor: replaced get expirationTimerUpdate calls
with getExpirationTimerUpdate
2 years ago
William Grant 0dcf48be16 refactor: replaced get expires_at calls
with getExpiresAt
2 years ago
William Grant 61eccb8d0f refactor: replaced get expirationStartTimestamp calls
with getExpirationStartTimestamp
2 years ago
William Grant 777584945d refactor: replaced get expireTimer calls
with getExpireTimer
2 years ago
William Grant ebaedb2e4c feat: created getters in message model
replaced all expirationType calls with getExpirationType
2 years ago
William Grant 1861131ce2 refactor: replaced get lastDisappearingMessageChangeTimestamp calls
with getLastDisappearingMessageChangeTimestamp
2 years ago
William Grant 712a1e92e4 refactor: replaced get hasOutdatedClient calls
with getHasOudatedClient
2 years ago
William Grant f31e157c12 refactor: replaced get expireTimer calls
with getExpireTimer
2 years ago
William Grant 3ed041c4a5 feat: created getters on convo model
replaced all expirationMode calls
2 years ago
William Grant 38a8012e10 refactor: providedexpirationtype to provideddisappearingmode 2 years ago
William Grant a484011acb refactor: changetodisappearingmessageconversationtype to changetodisappearingconversationmode 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 e69c5c4b35 chore: fixed unit tests 2 years ago
William Grant 93b450ce56 feat: hit expire endpoint for read messages
for now it will hit the expire endpoint twice
2 years ago
Audric Ackermann d12071f3c8 chore: big rename of convocontroller to convohub 2 years ago
William Grant c1dc2e5a6c fix: hit expire endpoint when send is successful
we need the returned messageHash from the swarm
2 years ago
William Grant a4bd3f59bb feat: improved expire swarm result logic
better logging and handle errors more smoothly
2 years ago
William Grant beb04d1b31 feat: improved logging for start expiry timestamp 2 years ago
William Grant 3b0d5f55e7 feat: added get_expiries typings 2 years ago
William Grant 3cc155b9e8 feat: update the TTL with the snode expire result 2 years ago
William Grant 32b7870e07 feat: make sure to use ms for the expireTimer
expireTimer on the model is in seconds so we need to convert it
2 years ago
William Grant a2185625c8 fix: use TTL_CONFIG in retrieve request
also some comment cleanup
2 years ago
Audric Ackermann b53264593b feat: preload name of group from usergroup wrapper
until we get the groupinfo name from polling
2 years ago
William Grant c33eef0162 fix: sync messages now expire in 1on1s
fromConfig has been removed from updateExpireTimer
2 years ago
William Grant 631c677a24 fix: trigger expiry for outgoing sync messages 2 years ago
Audric Ackermann 1a18054fae feat: add bump of config hashes for groups when we have admin key 2 years ago
William Grant 60aac9be85 fix: regular messages correctly sync again 2 years ago
William Grant ec81805745 fix: log pipeline better 2 years ago
William Grant 00ef4a47a2 fix: outgoing content messages can have an equal changetimestamp 2 years ago
William Grant 7c6e6c981a fix: make sure to note sent another message
in all remote cases
2 years ago
William Grant e8e3ba142e fix: added isOutdated prop to expireUpdate
ignores duplicate setting messages
2 years ago
William Grant 07097b029d fix: don't send sync messages for outdated changes 2 years ago
William Grant 3d8a664da9 fix: ignore equal lastMessageChangeTimestamps 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 50f144a8c3 fix: improved logging
made some progress with fixing things but other things broke
2 years ago
William Grant c24487b938 fix: deleteAfterSend now works in private convos again 2 years ago
Audric Ackermann 08164f2fd0 feat: add sending and receiving of libsession encrypted msgs
still a wip though
2 years ago
William Grant a65f02a807 feat: use checkForExpireUpdateInContentMessage on sync messages 2 years ago
Audric Ackermann be50aa7a2e feat: add support for retrieve signs with admin key of group 2 years ago
William Grant b88842b687 feat: tested v2 releas
made some updates to expire update generation and handling, one final fix required
2 years ago
William Grant c93315b0e7 fix: make sure lastDisappearingMessageChangeTimestamp is defined before comparing with convo model 2 years ago
William Grant bb6eb3e84e feat: fixed 1-1s and added more logging 2 years ago
William Grant d923a0d611 feat: closed groups state now starts correctly 2 years ago
William Grant 2a05185138 Merge branch 'unstable' into userconfig_disappearingmessage 2 years ago
Audric Ackermann 592d1f010f fix: use network time for emoji reacts syncing 2 years ago
William Grant e8c927f580 feat: setExpirationStartTimestamp uses DisappearingMessageConversationType
easier to manage starting a legacy disappearing message and always pass expiration type and timer
2 years ago
William Grant 9d8cca1970 feat: convert between conversation and message model disappearing modes in key locations
remove disappearing messages from convo header context menu
2 years ago
William Grant deceae4119 feat: disappearing messages setting now sync correctly in user config
we also load the visible control message, added back a lot of WIP logging while we are testing
2 years ago
William Grant 60e5503e6a feat: check for v2 release correctly on startup
improvements to creating and updating closed groups with disappearing message settings
2 years ago
William Grant c067ac9fc4 fix: simplified legacy support in conversationheadertitle 2 years ago
William Grant 60b75a8ddf feat: remove unlockNewModes from OverlayDisappearingMessages
use isDisappearMessageV2FeatureReleasedCached to set the mode to legacy strictly in the UI, created resolveLegacyDisappearingMode to change the legacy mode into the default mode for a conversation
2 years ago
William Grant cc63887273 fix: remove final instances of legacy type not in UI
fixed closed groups being deleteAfterSend incorrectly
2 years ago
William Grant ff19c95a92 fix: remove using legacy as a string for disappearing messages except in the UI
created new isLegacyDisappearingModeEnabled check, default use UNKNOWN expiration type in message classes if not defined
2 years ago
Audric Ackermann 5b2580c48d feat: add poller changes and closed group keypair gen 2 years ago
William Grant 03c0d74820 feat: migrations works correctly for private conversations 2 years ago
William Grant da588a1096 Merge branch 'unstable' into userconfig_disappearingmessage 2 years ago
William Grant 43276b069e Merge branch 'unstable' into userconfig_disappearingmessage 2 years ago
Audric Ackermann e3b6be7318 chore: fix typos
this comes from mdplusplus https://github.com/mdPlusPlus/session-desktop/tree/codespell

duplicated to fix conflicts
2 years ago
Audric Ackermann c60cfd8669 fix: emoji-mart update breaks native emoji fetch, use SearchIndex 2 years ago
Audric Ackermann 84deed19f9 feat: add block msg requests from sogs 2 years ago
William Grant 2a6d8a6544 feat: remove legacy from expirationType during db migration
fix migrations to work with user config changes
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 905fe5aab9 Merge branch 'unstable' into userconfig_disappearingmessage 2 years ago
Audric Ackermann 77acd1396b feat: add support for blinded25 receipt of messages for later impl 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
Audric Ackermann dcdbc07195 fix: delete actions for admins on communities 2 years ago
William Grant d37aa42084 Merge branch 'unstable' into feature/ses-145/leave-conversation-update 2 years ago
Audric Ackermann 5d2d901aa0 Merge remote-tracking branch 'upstream/unstable' into userconfig_disappearingmessage 2 years ago
William Grant 77bdceb409 fix: remove extra if statement when checking if a message is an interactionNotification 2 years ago
William Grant ede5fd8558 feat: removed named comments in favour of git blame 2 years ago
Audric Ackermann f2cddb83c8 chore: broke apart big Message selectors into smaller ones 2 years ago
William Grant 1c8ae3650e fix: pass yarn ready 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 de614109d0 feat: added lastMessageId to convo model to uniquely identify a lastMessage 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
Audric Ackermann 461b192f37 fix: mod and admin actions on message context menu for communities 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 2 years ago
William Grant 5111a141c8 feat: remove QUOTED_TEXT_MAX_LENGTH and sliceQuoteText 2 years ago
William Grant e1a6f8e3fc feat: cleaned up getPropsForQuote and rely on getMessageQuoteProps selector for creating quote object
authorName is broken for some reason and we will need to fix it
2 years ago
William Grant e90e548715 feat: improved quoted message not found
consolidated quote props lookup into getMessageQuoteProps, only use the db message in the quote components
2 years ago
William Grant 3bc187fa5e feat: performance improvements to quote lookup
getMessagesByConversation optionally returns quotes from messages in view, quoted messages that are deleted are removed from the lookup map. getMessageBySenderAndSentAt supports an array of messages and renamed to getMessagesBySenderAndSentAt
2 years ago
William Grant d706ecdead fix: show authorName in reply ui 2 years ago