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
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
2 years ago
Audric Ackermann
7b42c64cf3
fix: make sure to include the associatedWith to handle 421
2 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)
2 years ago
Audric Ackermann
77e5e38e46
chore: update lodash types, use prebuilt curbe25519-js
2 years ago
Audric Ackermann
6676bf77f9
chore: fix unit tests for userconfig changes
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
4d0e79f195
fix: legacy group with wrapper and disable right click while searching
2 years ago
Audric Ackermann
2a4bbbd587
feat: add the deleteContact and deleteConversation only menu items
2 years ago
Audric Ackermann
760ce5caa5
fix: add the maxSizeMap to have priority per retrieve namespaces
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
318a77be4b
fix: mark messages sent before our lastreadts from the wrapper as read
2 years ago
Audric Ackermann
44483b7d23
fix: use releaseFeature from disappearing message PR as featureFlag
2 years ago
Audric Ackermann
8edb1275c2
fix: keep updating dumps even if user config feature is off
2 years ago
Audric Ackermann
ce186517a3
chore: lint code
2 years ago
William Grant
ab04e9bd17
fix: updated comment for when to remove legacy code
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
647e542128
feat: add comments after run through
2 years ago
William Grant
1de21ea8c0
feat: only show banner after v2 is released
2 years ago
William Grant
afaaedac3e
feat: added proper note to self support
...
note to self is always delete after send
2 years ago
William Grant
2221d81a23
fix: reverted setToExpire timer,
...
fixed incorrect expirationLength value in getPropsForExpiringMessage
2 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
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
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
4c4bc045d7
fix: renamed ExpirationType enum value LEGACY to UNKNOWN
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
b8ab952c33
fix: explicitly set expirationType to undefined if sending a legacy message
2 years ago
William Grant
2f4c0114aa
feat: tested new expiration modes with legacy and new clients
...
fixed banner logic
2 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
2 years ago
William Grant
84dec94450
fix: cleanup logging
2 years ago
William Grant
dc57454911
feat: ignore conversation settings when new modes are unlocked
2 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
2 years ago
William Grant
854742c0b1
fix: improved logic for turning off disappearing messages
2 years ago
William Grant
a3a0c3f9de
feat: fixed closed groups legacy mode
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
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
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
42356b0d60
fix: duplicate timer update messages
2 years ago
William Grant
97ecc9e521
feat: fixed double expiration update message issue
...
started creating an inheritable expiration message class, improved start triggering logic
2 years ago
William Grant
446752cf54
feat: DataExtractionNotifications now expire
...
MessageRequestResponses should not expire, pass yarn ready
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
f122c206da
fix: improved backwards compatibility
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
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
b4fc33c8fa
fix: prevent duplicate expire timer updates while keeping backwards compatibility
2 years ago
William Grant
996d204dc8
feat: improved syncing of timers for disappear after send
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
ee4aa333fc
feat: disappearing after send is not working correctly
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
8dc7dac55e
feat: control available modes depending on the conversation
2 years ago
William Grant
2745571790
fix: correctly write to db when setting changes
2 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
2 years ago
William Grant
b12d086b22
feat: DisappearingMessageType -> DisappearingMessageConversationType
...
this is more explicit and allows use to use DisappearingMessageType in the message model
2 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
2 years ago
Audric Ackermann
0e286142f1
chore: add a redux settings slice, currently outdated banner inc
2 years ago
Audric Ackermann
0080254286
fix: add NoticeBanner showing when legacy config message received
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
55a2767fce
feat: do not approve a convo before sending the first message
...
but still sync it's state through the createdAt with libsession util
2 years ago
Audric Ackermann
760642e149
feat: use the lastJoinedAt and createdAt from the wrapper
2 years ago
Audric Ackermann
b843d66084
feat: add the lastJoined and createdAt timestamp from wrapper logic
2 years ago
Audric Ackermann
f3975b545a
feat: use priority for hidden and pinned conversation
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
fe5eea4c8d
chore: fix critical yarn audit issues
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
0050352470
chore: move selected convo selectors to another file
2 years ago
Audric Ackermann
c3e9d503e4
fix: unread count and forced unread is synced
2 years ago
Audric Ackermann
1c50aacc34
chore: remove groupModerators sogs from the db, store in redux only
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
21d8151b8b
feat: add convo volatile info mgmt
2 years ago
Audric Ackermann
c4e17d0825
fix: add mgmt of members in user groups wrapper
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
mdPlusPlus
1d6ed17ac7
Fix typos via codespell
2 years ago
Audric Ackermann
b2237efe51
feat: insert all contacts into wrapper before syncing it
2 years ago
Audric Ackermann
f215535f75
fix: set and get profile picture from libsession
2 years ago
Audric Ackermann
6bbb16b46d
feat: track and delete configMessageHashes
2 years ago
Audric Ackermann
d2d2a418eb
fix: use envelope time when dont have msg request response timestamp
2 years ago
Audric Ackermann
7c56310e69
feat: addConfSyncJob start
2 years ago
Audric Ackermann
4bfcf91193
fix: add return types for libsession wrapper functions
2 years ago
Audric Ackermann
08a15b210a
feat: move avatar downloading to JobRunner
2 years ago
Audric Ackermann
9cf1419ca5
feat: add first try to build SharedConfigMessages
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
6d1b406c85
fix: add namespace to all sending message calls
2 years ago
Audric Ackermann
0f58e11a17
chore: update with latest libsession wrapper
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
Audric Ackermann
2a8d764bfb
fix tests
2 years ago
Audric Ackermann
d7bcf1026f
fix: refactor snodeRPC to use snode batching
2 years ago
William Grant
367c0c94d0
Merge branch 'clearnet' into theming
3 years ago
Audric Ackermann
12161a1fde
fix: INVALID_DATE (-Infinity) when merging two conversations inactive
3 years ago
Audric Ackermann
3788f5a4d5
Merge pull request #2488 from Bilb/message-request-include-profile
...
Profile in messageRequest
3 years ago
Audric Ackermann
84f2ce777a
fix: include profile in message request response
3 years ago
Audric Ackermann
67817c516f
fix: typing message trigger ui refresh
...
also do not mark a conversation as trusted for attachment when getting
messagerequest response
3 years ago
Audric Ackermann
4ff0b63e36
fix: drop .group from incoming messages & exclude it from visible check
3 years ago
William Grant
3060ffd25a
test: added tests for adding and updating sogs cache entries
...
updated idForLogging for opengroups to be more verbose, updated reaction method calls to use exported Reactions object
3 years ago
William Grant
b33ea096b4
fix: speed up reaction UI update for opengroups
3 years ago
William Grant
f309bf40f8
fix: repaired reaction notifications for 1-1s
3 years ago
William Grant
5d6dd048ab
fix: use isUsFromCache instead of getOurPubKeyStrFromCache
3 years ago
William Grant
07c56e79f2
fix: make reaction UI updates when reacting faster in 1-1 and closed groups
3 years ago
William Grant
8b8be7a45d
Merge branch 'clearnet' into reactions_fixes
3 years ago
Audric Ackermann
8649483503
fix: add comments to isMessageEmptyExceptReaction and isMessageEmpty
3 years ago
William Grant
4889cb5b32
fix: ReactionList Senders is now an array since we want to handle opengroup reactions separately
...
we no longer need the messagehash and server id for rendering reactions in the UI, ignore reactions using the outdated type
3 years ago
Audric Ackermann
4a3d970a35
fix: make sure we drop empty messages from the main sogs pipeline
3 years ago
Will G
267f49ff1e
Emoji Reacts ( #2320 )
...
Add support for emoji reacts in conversations
Resolves #2375 and #1577
3 years ago
Audric Ackermann
242d51ca8d
Id blinding + onionv4 + new endpoints for sogs and fileserver ( #2347 )
...
* Added Onionv4 support to file server, sogs and pn server
* Added blinded message support
* Updated endpoints for sogs and file server to remove legacy ones
3 years ago
Emily
775ddfda12
fixing the saved media read receipt
3 years ago
Audric Ackermann
d5e3f73035
fix: read receipts handling for private chats
3 years ago
Audric Ackermann
ec76057c5e
Merge integration test ( #2313 )
...
* Testing playwright for Desktop automation
* add more data-testid field
* remove commited test-results
* test: skip group upkeep for now
* test: mention test create group instead of restoring from seed
* test: run on testnet
* fix: revert messagebanner unread count changes
from commit 8107d75e89
Co-authored-by: Emily <emily@oxen.io>
3 years ago
Audric Ackermann
368c0cd01b
drop sourceDevice and other unused json fields from msg table
3 years ago
Audric Ackermann
13e2f81f26
Merge remote-tracking branch 'upstream/clearnet' into node-side-in-ts
3 years ago
Audric Ackermann
e11775a2e0
fix color of opengroup invitation
3 years ago
Audric Ackermann
6001da5ac8
add some [perf] duration measurement
3 years ago
Audric Ackermann
323b7ec45c
cleanup >2 months old messages in opengroups
3 years ago
Audric Ackermann
01bb200b24
reduce number of commits during opengroup handling of message
3 years ago
Audric Ackermann
0158fd5ebb
filter duplicates on opengroup poll in a single sql call
3 years ago