Commit Graph

1322 Commits (0796460d57f139c7f77afb9ca43b87d9ea64e560)

Author SHA1 Message Date
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
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