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
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
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
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
5a5f069cca
fix: add tracking of expiration timer for nts through libsession
2 years ago
Audric Ackermann
db9fa14213
fix: don't update state on updates already included in our syncmessage
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
1ff2969750
refactor: rename getMessageBySenderAndTimestamp to getMessageBySenderAndSentAt
...
its more clear what parameters are needed
2 years ago
William Grant
e78d1dfb87
fix: send full text body for quote
...
resolved regression with quote author name
2 years ago
William Grant
bd8ce826a8
fix: replaced getMessageBySenderAndSentAt with getMessageBySenderAndTimestamp
...
which does the same thing but is more verbose
2 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
Audric Ackermann
4d0e79f195
fix: legacy group with wrapper and disable right click while searching
3 years ago
Audric Ackermann
2a4bbbd587
feat: add the deleteContact and deleteConversation only menu items
3 years ago
Audric Ackermann
760ce5caa5
fix: add the maxSizeMap to have priority per retrieve namespaces
3 years ago
Audric Ackermann
6f6620f622
fix: skip new group messages when receved after group was removed
3 years ago
Audric Ackermann
bac2887c28
fix: update with latest libsession util
3 years ago
Audric Ackermann
318a77be4b
fix: mark messages sent before our lastreadts from the wrapper as read
3 years ago
Audric Ackermann
44483b7d23
fix: use releaseFeature from disappearing message PR as featureFlag
3 years ago
Audric Ackermann
8edb1275c2
fix: keep updating dumps even if user config feature is off
3 years ago
Audric Ackermann
ce186517a3
chore: lint code
3 years ago
William Grant
ab04e9bd17
fix: updated comment for when to remove legacy code
3 years ago
William Grant
cfcf400ecf
fix: cleaned up WIP logging and used the window log debug function where appropriate
3 years ago
William Grant
647e542128
feat: add comments after run through
3 years ago
William Grant
1de21ea8c0
feat: only show banner after v2 is released
3 years ago
William Grant
afaaedac3e
feat: added proper note to self support
...
note to self is always delete after send
3 years ago
William Grant
2221d81a23
fix: reverted setToExpire timer,
...
fixed incorrect expirationLength value in getPropsForExpiringMessage
3 years ago
William Grant
6a38e09f4f
feat: moved setToExpire calls to the correct locations within the message pipeline depending on the expirationType of a message model
3 years ago
William Grant
b6c3edbac4
fix: pass yarn ready
3 years ago
William Grant
e5ecff7ec3
fix: fixed legacy disappearing messages on call notifications and others
3 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
3 years ago
William Grant
8dc7d48c52
feat: renamed isLegacyMessage to isLegacyDataMessage
...
all works except modern to modern stage 2
3 years ago
William Grant
89c70760a5
fix: refactor and works for all legacy test cases, modern to modern is broken
3 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
3 years ago
William Grant
4c4bc045d7
fix: renamed ExpirationType enum value LEGACY to UNKNOWN
3 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.
3 years ago
William Grant
b8ab952c33
fix: explicitly set expirationType to undefined if sending a legacy message
3 years ago
William Grant
2f4c0114aa
feat: tested new expiration modes with legacy and new clients
...
fixed banner logic
3 years ago
William Grant
93cb972514
feat: updated hasOutdatedClient to track last user to send a legacy message
...
this makes the banner work properlly in closed groups
3 years ago
William Grant
84dec94450
fix: cleanup logging
3 years ago
William Grant
dc57454911
feat: ignore conversation settings when new modes are unlocked
3 years ago
William Grant
6de7c5c405
fix: legacy message checks must look for the ExpirationTimerUpdate flag explicitly
...
use correct model for a message in a closed group
3 years ago
William Grant
854742c0b1
fix: improved logic for turning off disappearing messages
3 years ago
William Grant
a3a0c3f9de
feat: fixed closed groups legacy mode
3 years ago
William Grant
8117e631d0
feat: legacy mode now works for 1-1 chats
3 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
3 years ago
William Grant
255b6225c9
feat: block sending disappearing messages of the wrong type in different conversations,
...
improved disappear after send or read logic, disable legacy sending for now
3 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
3 years ago
William Grant
42356b0d60
fix: duplicate timer update messages
3 years ago
William Grant
97ecc9e521
feat: fixed double expiration update message issue
...
started creating an inheritable expiration message class, improved start triggering logic
3 years ago
William Grant
446752cf54
feat: DataExtractionNotifications now expire
...
MessageRequestResponses should not expire, pass yarn ready
3 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
3 years ago
William Grant
f122c206da
fix: improved backwards compatibility
3 years ago
William Grant
ac844af691
feat: updated timer notification design and copy
3 years ago
William Grant
4ef3537a53
feat: timer notifications expire correctly when disappearing after sending
3 years ago
William Grant
e34e3d4a4b
fix: resolved some yarn ready issues
3 years ago
William Grant
f825b74895
feat: disappearing messages are now correctly deleted from the swarm after they expire
3 years ago
William Grant
d358ab2fb1
feat: fixed closed groups
...
improved setExpirationStartTimestamp logic
3 years ago
William Grant
b4fc33c8fa
fix: prevent duplicate expire timer updates while keeping backwards compatibility
3 years ago
William Grant
996d204dc8
feat: improved syncing of timers for disappear after send
3 years ago
William Grant
6febf2859e
feat: disappear after reading now works
3 years ago
William Grant
4ee440304c
feat: attempted to improve the accuracy of the start timer for disappear after send
3 years ago
William Grant
ee4aa333fc
feat: disappearing after send is not working correctly
3 years ago
William Grant
22e02633a9
feat: started consolidating send and receive dm logic.
...
updated in parts but haven't test what happens
3 years ago
William Grant
8dc7dac55e
feat: control available modes depending on the conversation
3 years ago
William Grant
2745571790
fix: correctly write to db when setting changes
3 years ago
William Grant
ee6607b96a
feat: added expirationType and expireTimer to content message and updated message pipeline
...
this includes sync messages and updating the protobuf, haven't tested closed groups
3 years ago
William Grant
b12d086b22
feat: DisappearingMessageType -> DisappearingMessageConversationType
...
this is more explicit and allows use to use DisappearingMessageType in the message model
3 years ago
William Grant
30196a131a
feat: added basic support for different disappearing message modes
...
added expirationType and lastDisappearingMessageChangeTimestamp to conversations table, left a few comments for future work
3 years ago
Audric Ackermann
0e286142f1
chore: add a redux settings slice, currently outdated banner inc
3 years ago
Audric Ackermann
0080254286
fix: add NoticeBanner showing when legacy config message received
3 years ago
Audric Ackermann
cbffc29950
fix: run tests for libsession-util integration and fix issue
3 years ago
Audric Ackermann
3ecc89fab3
Merge remote-tracking branch 'upstream/master' into onboarding
3 years ago
Audric Ackermann
55a2767fce
feat: do not approve a convo before sending the first message
...
but still sync it's state through the createdAt with libsession util
3 years ago
Audric Ackermann
760642e149
feat: use the lastJoinedAt and createdAt from the wrapper
3 years ago
Audric Ackermann
b843d66084
feat: add the lastJoined and createdAt timestamp from wrapper logic
3 years ago
Audric Ackermann
f3975b545a
feat: use priority for hidden and pinned conversation
3 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.
3 years ago
Audric Ackermann
fe5eea4c8d
chore: fix critical yarn audit issues
3 years ago
Audric Ackermann
796ccf0582
feat: add handling and setting of the expireTimer for contacts
3 years ago
Audric Ackermann
554b445a3e
feat: lookup for shared config message on link device
3 years ago
Audric Ackermann
0050352470
chore: move selected convo selectors to another file
3 years ago
Audric Ackermann
c3e9d503e4
fix: unread count and forced unread is synced
3 years ago
Audric Ackermann
1c50aacc34
chore: remove groupModerators sogs from the db, store in redux only
3 years ago
Audric Ackermann
bf2456df8e
chore: do not store mentionedUs and unreadCount as attribute in convo
3 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
3 years ago