Commit Graph

1378 Commits (eaa2ee1887f47924924b707c537d9946fb0fce52)

Author SHA1 Message Date
William Grant 8d36442dbf refactor: rename ttl_max to content_message
this is more explicit
2 years ago
William Grant f5a9e9c366 fix: comment cleanup 2 years ago
William Grant 50680bba7d fix: throw error in getMessageReadyToDisappear
for community messages
2 years ago
William Grant 3feb8cddf2 refactor: move checkShouldDisappearButIsntMessage
to legacy file
2 years ago
William Grant a2908cf24b fix: use switch instead of chained ifs
in setExpirationStartTimestamp
2 years ago
William Grant 730641a14d feat: added todo to section duck
we want to move it into a redux slice in future
2 years ago
William Grant be8c3b042f feat: added checkForExpiringOutgoingMessage
triggers timer for all outgoing messages. includes unit tests
2 years ago
William Grant bd9d56d381 fix: foundMessage has the ttl updated by reference
no need to explicitly assign it
2 years ago
William Grant 40014544d1 fix: closed group groupId is now PubKey only 2 years ago
William Grant 01d04bd4d3 refactor: existingexpration to existingexpirationt
in createClosedGroups.ts. Cleaned up some comments
2 years ago
William Grant 8838477e34 refactor: ttl_config to config_message
inside of TTL_DEFAULT. This is more readable and explicit
2 years ago
William Grant d4aacd3159 fix: move isDelete into inbox poll if statement
fixed some comments
2 years ago
William Grant aad55025ba fix: more comment cleanup 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 a2890925a5 test: fix groups wrapper values test 2 years ago
William Grant 6694f5a86f refactor: fixed comment typo
returned for testing purposes only
2 years ago
William Grant 4b93c5779a test: started libsession LegacyGroups tests
specifically insertGroupsFromDBIntoWrapperAndRefresh
2 years ago
William Grant bb95aef2d0 test: finished libsession_wrapper_user_profile tests 2 years ago
William Grant edfcbe2d67 fix: dont use ourNumber in contacts tests 2 years ago
William Grant 3330c64761 test: started insertContactFromDBIntoWrapperAndRefresh 2 years ago
William Grant 3f843aa72c test: finished processGetExpiriesRequestResponse 2 years ago
William Grant a00b016233 test: wip getExpiriesRequest Started 2 years ago
William Grant 16aad0c748 test: started processExpireRequestResponse 2 years ago
William Grant 1ce1924389 test: finished verifyExpireMsgsResponseSignature 2 years ago
William Grant f28bb66742 test: started expireRequest
added tests for buildExpireRequest
2 years ago
William Grant 6379226410 feat: added isValidUnixTimestamp 2 years ago
William Grant de2a15a691 fix: dont load container if there are no reactions
now message elements are the correct height from what we see visually
2 years ago
William Grant 101762918c Merge branch 'unstable' into userconfig_disappearingmessage 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 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 c4cc18ad2e feat: dont expire messages that fail to send 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 c7f8f4f635 fix: get_expiries retry and error handing
nested pRetry Abort errors can break our retry logic so we need to catch them
2 years ago
William Grant 0e67e2a0b7 feat: improved expiry retry and error handing
nested pRetry Abort errors can break our retry logic so we need to catch them
2 years ago
William Grant 5b6ebcad07 fix: add temp fix for single msg get_expiries 2 years ago
William Grant e6257f3cbc fix: commented out some logs 2 years ago
Audric Ackermann 7c16ce9da4 fix: do not try to store contacts not matching pubkey regex in wrapper
also remove existing convo with spaces and 05 on start
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
William Grant c1dc2e5a6c fix: hit expire endpoint when send is successful
we need the returned messageHash from the swarm
2 years ago
William Grant 958f64e27f feat: get_expiries implementation done
now just need to make sure to call both endpoints in the correct places
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 9e21f459dd feat: started get_expiries work
signature now generates and renamed expire file to expireRequest
2 years ago
William Grant 3cc155b9e8 feat: update the TTL with the snode expire result 2 years ago
William Grant ee5503585a fix: comment out some unnecessary logging 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 7f68107738 feat: added retry logic to expireMessageOnSnode 2 years ago
William Grant ae15275206 feat: adding proper typings to snode expire code
I dont think the expire value returned is correct, needs debugging
2 years ago
William Grant f2dbcfa305 feat: use SubRequest typings for expireOnNodes
created request builder, added logging for now to test
2 years ago
William Grant a2185625c8 fix: use TTL_CONFIG in retrieve request
also some comment cleanup
2 years ago
William Grant b5bf6be691 fix: show durations for constants on hover
for TTL_DEFAULT and SWARM_POLLING_TIMEOUT
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 07097b029d fix: don't send sync messages for outdated changes 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
William Grant a65f02a807 feat: use checkForExpireUpdateInContentMessage on sync messages 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 bb6eb3e84e feat: fixed 1-1s and added more logging 2 years ago
William Grant 6031db308d fix: disappear messages from other platforms correctly
some platforms use the convo settings and dont include info the dataMessage before the v2 release
2 years ago
William Grant 58331209c7 fix: closed groups works correctly now
I think
2 years ago
William Grant d923a0d611 feat: closed groups state now starts correctly 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 b1bbcd1a38 fix: cleanup legacy groups 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 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
William Grant bfc073ef70 fix: eslint warning in syncutils 2 years ago
William Grant 37676e5666 fix: making progress with group migration
still getting overriden on render
2 years ago
William Grant da588a1096 Merge branch 'unstable' into userconfig_disappearingmessage 2 years ago
William Grant 22e9e6bb44 feat: started working on disappearing messages migration 34
note to self and private conversations are mvp, still some initial cleanup todo
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 a25d94fa6c fix: moved disappearing messages migration to a separate file
updated note to self function calls in the user config wrapper
2 years ago
William Grant ff27913b66 fix: migration started and working for note to self for user config
updated libsession to use setExpiry and getExpiry since we can't add new arguments to the getUserInfo and setUserInfo
2 years ago
William Grant d794b0a0d4 fix: comment out user config disappearing messages stuff for now 2 years ago
William Grant 5762342e03 fix: spaces on fixme comments 2 years ago
Audric Ackermann c796afe4c8 Merge remote-tracking branch 'upstream/unstable' into integration_tests_2 2 years ago
William Grant 41af1e7865 Merge branch 'unstable' into userconfig_disappearingmessage 2 years ago
Audric Ackermann 953897cc1c
Merge pull request #2840 from Bilb/replace-tslint-with-eslint
Replace tslint with eslint
2 years ago
Audric Ackermann 940c3f622a
Merge pull request #2834 from Bilb/update-electron
chore: update node version, electron and deps
2 years ago
Audric Ackermann ab946e69b1 fix: finish updating dependencies 2 years ago
William Grant 10561e4e3c Merge branch 'unstable' into userconfig_disappearingmessage 2 years ago
Audric Ackermann b7d444e5d5
Merge pull request #2820 from Bilb/chore/remove-unblock-group-string
chore: remove the unblockGroupToSend string as we cannot block a group.
2 years ago
Audric Ackermann feaba36fa4 fix: picker emoji-mart errors after update 2 years ago
Audric Ackermann d43d6abbae chore: replace tslint with eslint and fix linting issues 2 years ago
Audric Ackermann 49955a3947 chore: update node version, electron and deps 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