Commit Graph

573 Commits (07b9b37abb4bf547ad77bff8677df6c4dec6c7d3)

Author SHA1 Message Date
William Grant 1d7380a254 refactor: rename expirationLength
to expirationDurationMs
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 b471900a18 feat: move timer options out of redux 2 years ago
William Grant cafa9d80ec fix: remove all unneeded tslint comments
fixed some eslint errors
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 a9d1abbfff test: finished setExpirationStartTimestamp tests 2 years ago
William Grant 0dcf48be16 refactor: replaced get expires_at calls
with getExpiresAt
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 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
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 e6257f3cbc fix: commented out some logs 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 475807c4ae fix: remove redundant start timestamp start in read receipts 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 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 3d8a664da9 fix: ignore equal lastMessageChangeTimestamps 2 years ago
William Grant ab13f39a10 fix: newlines for logging 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 ad21d198cf feat: outdated banner now shows specific messaging for synced messages 2 years ago
William Grant 710da30594 feat: shouldDisappearButIsntMessage is now a function
result is added to the expireUpdate and improves outdated client checking logic
2 years ago
William Grant 617bcc670b feat: added temp set feature for testing 2 years ago
William Grant 94d8697a29 fix: whitespace in comment 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
Ruben Garcia e5b7ca4d07 fix: yarn ready 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 85f270b67a Merge branch 'unstable' into userconfig_disappearingmessage 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
Ruben Garcia 6ac328f0c3 Merge branch 'clearnet' into RenameMultipleAttachments 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
Audric Ackermann 1b73112294 fix: make sure we scale image before trying to compress it 2 years ago
Ruben Garcia 1b91d84b09 Changes to save multiple attachments in same message with a different name. 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 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 82e396dca6 feat: remove useEffect on right panel and use hook for checking is v2 is released 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
Audric Ackermann bee00157ef Merge remote-tracking branch 'yougotwill/feature/ses-379/composition-rtl-support' into feature/ses-379/composition-rtl-support 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 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 41ca0666ce chore: remove () => void for misused promises 2 years ago
Audric Ackermann ab946e69b1 fix: finish updating dependencies 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
William Grant 905fe5aab9 Merge branch 'unstable' into userconfig_disappearingmessage 2 years ago
Audric Ackermann b4482ec2d4 fix: enable userconfig release to be 31st July
31st July, 10am Melbourne time
2 years ago
Audric Ackermann 5d2d901aa0 Merge remote-tracking branch 'upstream/unstable' into userconfig_disappearingmessage 2 years ago
William Grant 83f84c26e7 feat: changed getHTMLDirection into a util hook useHTMLDirection 2 years ago
William Grant 61149a5ca3 feat: use a selector for htmlDirection and pass it down as props instead of using state
this is more inline with class component conventions
2 years ago
William Grant 7be11cd973 feat: moved html direction logic into i18n util
updated Flex component with RTL support, create getWritingDirection selector
2 years ago
Audric Ackermann 3eb629e33e fix: cleanup convo selectors to hope to improve performances 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
Audric Ackermann 2068737cdd fix: break down deleteContact based on convo type 2 years ago
William Grant f41c28a873 fix: moved feature release timestamp to constants so it only has to be defined once 2 years ago
Audric Ackermann 2c2656d545 chore: make an internal build with userconfig forced ON 2 years ago
William Grant 73ca99496d feat: added DisappearingMessageModesWithState type 2 years ago
William Grant b601c11871 fix: reverted code and updated comment on readReceipts pending qa 2 years ago
Audric Ackermann 6ac4dd8db5 fix: linking allows legacy config message if one is found 2 years ago
William Grant c6cd3671de fix: run expireUpdate handler on all messages and just return the model if there are no changes 2 years ago
Audric Ackermann 768e0e1b5f chore: enable userconfig libsession by default for testing 2 years ago
Audric Ackermann 4d0e79f195 fix: legacy group with wrapper and disable right click while searching 2 years ago
Audric Ackermann 6f6620f622 fix: skip new group messages when receved after group was removed 2 years ago
Audric Ackermann bac2887c28 fix: update with latest libsession util 2 years ago
Audric Ackermann 3cd52d5b1a fix: add currentHashes and update expiry on every poll 2 years ago
Audric Ackermann 44483b7d23 fix: use releaseFeature from disappearing message PR as featureFlag 2 years ago
Audric Ackermann 1c48ff8a49 chore: include worker .node in addition to libsession .node 2 years ago
William Grant 42924b0c54 fix: use storage put instead of data methods so that we can track in redux
added a fix in OverlayDisappearingMessages so when v2 turns on an and the app is running a migration occurs
2 years ago
William Grant cfcf400ecf fix: cleaned up WIP logging and used the window log debug function where appropriate 2 years ago
William Grant 1d6f200d50 fix: pass yarn ready 2 years ago
William Grant 386997f233 feat: made progress on attachment deletions but can confirm 100% 2 years ago
William Grant 647e542128 feat: add comments after run through 2 years ago
William Grant f68fbb05f9 fix: resolve turning off disappearing messages empty messages in most cases
still requires more tweaking
2 years ago
William Grant 92282a5d95 feat: verify disappearing messages arent supported in communities 2 years ago
William Grant 2e6acb1f59 feat: only use timer svg for disappearing message 2 years ago
William Grant 46ab397a0f fix: read receipt messages now show expireTimer correctly 2 years ago
William Grant 4d0900844b fix: adding shorten and extend to expire rpc endpoint 2 years ago
William Grant b6c3edbac4 fix: pass yarn ready 2 years ago
William Grant e5ecff7ec3 fix: fixed legacy disappearing messages on call notifications and others 2 years ago
William Grant f7e5719eac feat: reverted bak to stage 1 2 years ago
William Grant ceeb9b790a fix: finally got all the test cases to pass!
removed misMatchedMessage and replaced with shouldDisappearButIsntMessage which is a more explicit check
2 years ago
William Grant 8dc7d48c52 feat: renamed isLegacyMessage to isLegacyDataMessage
all works except modern to modern stage 2
2 years ago
William Grant 89c70760a5 fix: refactor and works for all legacy test cases, modern to modern is broken 2 years ago
William Grant 6dd340ca6c feat: handle legacy disappearing messages more gracefully due to protobuf issues
added utility function for checking for undefined properties on a protobuf, renamed expireTimer to expirationTimer in some places
2 years ago
William Grant df40ff8855 feat: added legacy to the ExpirationType enum in the protobuf and updated support
the desktop protobuf implementation doesnt support undefined for optional enum values this is a known bug.
2 years ago
William Grant bddc018ce7 fix: updated featureReleaseTimestamps for testing purposes 2 years ago
William Grant 2f4c0114aa feat: tested new expiration modes with legacy and new clients
fixed banner logic
2 years ago
William Grant 718986c416 fix: improved feature release logic 2 years ago
William Grant 15c054a35e feat: added ability to reset the releaseFeature logic by updating the featureReleaseTimestamp 2 years ago
William Grant 80f18e9f1c feat: use correct timer options and set the defaults 2 years ago
William Grant 8117e631d0 feat: legacy mode now works for 1-1 chats 2 years ago
William Grant bd900128f4 feat: added hasOutdated Client to convo model, use feature release check to process disappearing messages
trigger banner when receiving a legacy disappearing message via hasOutdatedClient
2 years ago
William Grant 4dbbada728 feat: added notice banner component
show notice when conversation is in legacy mode, extracted some UI components from the ConversationHeader, updated featureReleaseTimestamp
2 years ago
William Grant 848c97938c feat: disabled new disappearing message modes behind a timed feature release function 2 years ago
William Grant 7d0673f7f2 wip: added new legacy mode to panel, improved backwards compatibility
legacy mode support in conversation header, added typing for the expireUpdate, next is sending support
2 years ago
William Grant 5c697572a7 feat: Call Notifications now expire properlly
include the direction in the expiration props, setting the start timer doesnt directly update the model
2 years ago
William Grant ac844af691 feat: updated timer notification design and copy 2 years ago
William Grant 4ef3537a53 feat: timer notifications expire correctly when disappearing after sending 2 years ago
William Grant f36bbb9c7c feat: group invitiations now disappear 2 years ago
William Grant e34e3d4a4b fix: resolved some yarn ready issues 2 years ago
William Grant f825b74895 feat: disappearing messages are now correctly deleted from the swarm after they expire 2 years ago
William Grant d358ab2fb1 feat: fixed closed groups
improved setExpirationStartTimestamp logic
2 years ago
William Grant 996d204dc8 feat: improved syncing of timers for disappear after send 2 years ago
William Grant 4d92500b60 feat: slight improved timing of sent message expire start time 2 years ago
William Grant 6febf2859e feat: disappear after reading now works 2 years ago
William Grant 4ee440304c feat: attempted to improve the accuracy of the start timer for disappear after send 2 years ago
William Grant 22e02633a9 feat: started consolidating send and receive dm logic.
updated in parts but haven't test what happens
2 years ago
William Grant 4731139b05 feat: added default timer values for different modes 2 years ago
William Grant 2745571790 fix: correctly write to db when setting changes 2 years ago
William Grant 0700ac4813 fix: moved disappearing message types to utils 2 years ago
Audric Ackermann 0e286142f1 chore: add a redux settings slice, currently outdated banner inc 2 years ago
Audric Ackermann cbffc29950 fix: run tests for libsession-util integration and fix issue 2 years ago
Audric Ackermann 3ecc89fab3 Merge remote-tracking branch 'upstream/master' into onboarding 2 years ago
Audric Ackermann 760642e149 feat: use the lastJoinedAt and createdAt from the wrapper 2 years ago
Audric Ackermann 027bd46ff7 fix: allow legacy config message during linking
We only handle handlethem after the new config message ones, so if there is a
shared config message on the network we will use it for the linking
process instead. The legacy one this commit is about is bound to be
removed completely and will only be used until our users have updated to
the new ones for some time.
2 years ago
Audric Ackermann b4218311b0
Merge pull request #2680 from yougotwill/save_qr_code
feat: added ability to save qr codes on click
2 years ago
Audric Ackermann 796ccf0582 feat: add handling and setting of the expireTimer for contacts 2 years ago
Audric Ackermann 554b445a3e feat: lookup for shared config message on link device 2 years ago
Audric Ackermann c3e9d503e4 fix: unread count and forced unread is synced 2 years ago
Audric Ackermann bf2456df8e chore: do not store mentionedUs and unreadCount as attribute in convo 2 years ago
Audric Ackermann f5efb52fea feat: remove closedgroupv3 uneeded stuff for now
also move the room stuff which can be kept in memory into another redux
slice
2 years ago
Audric Ackermann bc905bdba1 feat: start of community handling in libsession util
also remove tracking of hashes for config namespaces
2 years ago
Audric Ackermann 3c58f9c1e4 feat: add a hidden flag for convos and use it with the contactswrapper 2 years ago
Audric Ackermann c4217cb564 feat: sync nickname, blocked and approved status for contacts 2 years ago
Audric Ackermann f88acdb567 feat: remove blocked group tracking separately from the pubkeys 2 years ago
William Grant e5f1e65194 feat: added ability to save qr codes on click
recovery phrase modal ui layout is now the same as edit profile modal, fixes for yarn ready
2 years ago
mdPlusPlus 13c1b207f4 Add missing space between "PNG" and "GIF" in error message 2 years ago
mdPlusPlus 1d6ed17ac7 Fix typos via codespell 2 years ago
Audric Ackermann d1cefd4729 feat: add contacts & user profile handling of incoming messages 2 years ago
William Grant 504f60cb97 fix: resolved missing reactions in open groups, fixed mutation cache logic 2 years ago
Audric Ackermann 1a65b7a7f2 feat: working calls to node module from renderer through worker 2 years ago
Audric Ackermann bace70c6bc chore: move util worker to its own folder 2 years ago