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
73cceab31f
refactor: getDisappearingUnreadByConversation
...
to getUnreadDisappearingByConversation since reading causes disappearing
2 years ago
William Grant
cafa9d80ec
fix: remove all unneeded tslint comments
...
fixed some eslint errors
2 years ago
Audric Ackermann
9492fdc51e
fix: first working test ios to desktop
...
still have some tests to fix
2 years ago
Audric Ackermann
d134da3421
chore: renamed ConfigurationSyncJob to UserSyncJob
2 years ago
Audric Ackermann
d9300e67a0
fix: remove the whole kind logic and use namespace instead
...
this is because session doesn't care about the config it receives
anymore and just forwards them to libsession
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
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
674cda3278
fix: sync legacy mode in single mode before V2
...
for NTS and closed groups we want to set the expirationMode to legacy
2 years ago
William Grant
bb646ed3b9
refactor: replaced get expirationTimerUpdate calls
...
with getExpirationTimerUpdate
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
38a8012e10
refactor: providedexpirationtype to provideddisappearingmode
2 years ago
William Grant
a484011acb
refactor: changetodisappearingmessageconversationtype to changetodisappearingconversationmode
2 years ago
William Grant
515805b94d
fix: messages are no longer randomly deleted
...
forgot to expire only unread disappearing messages and not all messages
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
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
238a16149d
fix: we can trust the read start from libsession for expirationTimerUpdates
...
therefore we don't need to update the read status explicitly
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
beb04d1b31
feat: improved logging for start expiry timestamp
2 years ago
William Grant
ee5503585a
fix: comment out some unnecessary logging
2 years ago
Audric Ackermann
e220aeea91
feat: add working encrypt/decrypt for 03 group with libsession
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
f045562a33
fix: use updateExpireTimer for UserProfile
...
before we were setting the convo values directly
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
cd17a08c2e
chore: lint
2 years ago
Audric Ackermann
1a18054fae
feat: add bump of config hashes for groups when we have admin key
2 years ago
William Grant
17f8431f59
fix: canBeDeleteAftereSend in messagejob was wrong
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
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
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
Audric Ackermann
08164f2fd0
feat: add sending and receiving of libsession encrypted msgs
...
still a wip though
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
Audric Ackermann
90f4dd761c
feat: add meta merge and update of name+members
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
Audric Ackermann
42913371df
fix: remove groups from protobuf
2 years ago
William Grant
bb6eb3e84e
feat: fixed 1-1s and added more logging
2 years ago
Audric Ackermann
8c3b6508ad
fix: wip before removing info+members+keys from protobuf kinds
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
Audric Ackermann
db98cc2812
feat: able to create a broken closedgroup v3
2 years ago
William Grant
2a05185138
Merge branch 'unstable' into userconfig_disappearingmessage
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
Audric Ackermann
e98c9720c8
fix: fix synced messages sometimes not appearing
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
b14d05e0b2
feat: fix missing update for private conversations
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
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
37676e5666
fix: making progress with group migration
...
still getting overriden on render
2 years ago
William Grant
43276b069e
Merge branch 'unstable' into userconfig_disappearingmessage
2 years ago
Audric Ackermann
84deed19f9
feat: add block msg requests from sogs
2 years ago
William Grant
d794b0a0d4
fix: comment out user config disappearing messages stuff for now
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
William Grant
c08dcc7ec6
fix: when we receive and make a quote message do an in-memory lookup before looking in the db
...
this can fix original message not found errors when there are lot of unread messages and one of them is quoted
2 years ago
Audric Ackermann
9a7ef4d373
Merge branch 'unstable' into userconfig_disappearingmessage
2 years ago
Audric Ackermann
1c7a26b65e
fix: index typo in loop for thumbnail download
2 years ago
William Grant
62c5ebb1fc
fix: processQuoteAttachments correctly updates attachment thumbnails when downloading them
2 years ago
Audric Ackermann
594eee698b
Merge remote-tracking branch 'upstream/clearnet' into unstable
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
Audric Ackermann
0e18bf4640
fix: disable expire timer tracking for all libsession logic
...
this will need to be turned on when the disappearing branch is merged
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
de614109d0
feat: added lastMessageId to convo model to uniquely identify a lastMessage
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
Audric Ackermann
5a5f069cca
fix: add tracking of expiration timer for nts through libsession
3 years ago
Audric Ackermann
db9fa14213
fix: don't update state on updates already included in our syncmessage
3 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
3 years ago
William Grant
1ff2969750
refactor: rename getMessageBySenderAndTimestamp to getMessageBySenderAndSentAt
...
its more clear what parameters are needed
3 years ago
William Grant
e78d1dfb87
fix: send full text body for quote
...
resolved regression with quote author name
3 years ago
William Grant
bd8ce826a8
fix: replaced getMessageBySenderAndSentAt with getMessageBySenderAndTimestamp
...
which does the same thing but is more verbose
3 years ago
Audric Ackermann
2068737cdd
fix: break down deleteContact based on convo type
3 years ago
Audric Ackermann
7b42c64cf3
fix: make sure to include the associatedWith to handle 421
3 years ago
Audric Ackermann
0cbcecb508
fix: make avatar download job only take conversationId
...
and not the profileKey+url too as we need the db entry to be in sync
with the config wrapper data (otherwise the next commit would be made
with data out of date from the wrapper side)
3 years ago
Audric Ackermann
77e5e38e46
chore: update lodash types, use prebuilt curbe25519-js
3 years ago
Audric Ackermann
6676bf77f9
chore: fix unit tests for userconfig changes
3 years ago
Audric Ackermann
6ac4dd8db5
fix: linking allows legacy config message if one is found
3 years ago
William Grant
c6cd3671de
fix: run expireUpdate handler on all messages and just return the model if there are no changes
3 years ago