William Grant
|
c9a8ea2b81
|
feat: removed MessageDetails and added MessageInfo
added other components
|
2 years ago |
William Grant
|
3bf3bf73b1
|
feat: updated MessageContent with nested components
|
2 years ago |
William Grant
|
7f4475c975
|
Merge branch 'unstable' into userconfig_disappearingmessage
|
2 years ago |
William Grant
|
0f05b24c86
|
chore: bump libsession_util_nodejs to v0.3.0
|
2 years ago |
William Grant
|
22b0ab5f2f
|
feat: updated panel buttons
add params to panel state to be used in future, not tested yet
|
2 years ago |
William Grant
|
537897dedb
|
feat: added duration to media attachments
added showLightboxFromAttachmentProps for future use
|
2 years ago |
William Grant
|
c0cfe153c6
|
feat: image comp supports string dimensions
|
2 years ago |
Kee Jefferys
|
36adbaa71e
|
fix: update any to void
|
2 years ago |
William Grant
|
a37c8eaf13
|
fix: merge now returns good hashes
we calc the latestEnvelopeTimestamp and use for disappearAfterRead
|
2 years ago |
Kee Jefferys
|
b8ef827e62
|
fix: update usage of string and bool in radio group
|
2 years ago |
Kee Jefferys
|
143753566d
|
feat: alias saved messages with note to self
|
2 years ago |
Audric Ackermann
|
67f569e9e3
|
Merge pull request #2917 from RubenGarcia/RenameMultipleAttachments
Rename multiple attachments
|
2 years ago |
Ruben Garcia
|
916babb9d0
|
fix: requested changes by Bilb
|
2 years ago |
William Grant
|
0cbdd5631b
|
fix: alignment for group messages with no avatar
this happens with multiple incoming messages
|
2 years ago |
William Grant
|
b1d604236e
|
fix: no any in useSelectors
for getMessageAttachmentProps and getIsMessageSelected
|
2 years ago |
William Grant
|
973845b7c6
|
fix: comment note casing
|
2 years ago |
William Grant
|
5d98ff6e8b
|
test: replace any with ConversationAttributes
on convo constructor args
|
2 years ago |
William Grant
|
0796460d57
|
fix: comment typos
|
2 years ago |
William Grant
|
04c3f69398
|
refactor: export functions from an object for stubbing
for disappearing messages index file
|
2 years ago |
William Grant
|
c644c644c9
|
fix: explicitly set isCentered
|
2 years ago |
William Grant
|
bb6e09de0a
|
feat: cleaned up wip logs
|
2 years ago |
William Grant
|
9fb67f20c2
|
refactor: moved getMessageExpirationProps
into useParamSelector since it is only called there
|
2 years ago |
William Grant
|
058ab3ea7e
|
fix: remove unneeded handleSetTime
in OverlayDisappearingMessages
|
2 years ago |
William Grant
|
294e38fe57
|
feat: extra legacy useEffects into custom hooks
for OverlayDisappearingMessages
|
2 years ago |
William Grant
|
f43dc13403
|
chore: made note about the hasOutdatedClient prop
we will remove it when we remove the legacy code
|
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
|
ef50a9f7a5
|
fix: remove unneeded Boolean cast
|
2 years ago |
William Grant
|
aad55025ba
|
fix: more comment cleanup
|
2 years ago |
William Grant
|
61d349ecc4
|
fix: remove unneeded export for
writeSessionSchemaVersion
|
2 years ago |
William Grant
|
a459bff86c
|
fix: more comment cleanup
|
2 years ago |
William Grant
|
1d7380a254
|
refactor: rename expirationLength
to expirationDurationMs
|
2 years ago |
William Grant
|
386e9ef709
|
refactor: update region comments to #region
|
2 years ago |
William Grant
|
f3b4b6f862
|
refactor: isDisappearing to matchesDisappearing
cleaned up some comments
|
2 years ago |
William Grant
|
8d9fc33180
|
fix: remove unnecessary async on markReadNoCommit
|
2 years ago |
William Grant
|
7b8d1ed2f7
|
fix: replace backbone get method
for lastDisappearingMessageChangeTimestamp
|
2 years ago |
William Grant
|
ee38af12dd
|
test: restructed tests to match feature folder
|
2 years ago |
Kee Jefferys
|
6b78cc1d4b
|
fix: ensure default value is provided
|
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 |
Kee Jefferys
|
ff09d8e104
|
fix: disable eslint, refactor function
|
2 years ago |
William Grant
|
73cceab31f
|
refactor: getDisappearingUnreadByConversation
to getUnreadDisappearingByConversation since reading causes disappearing
|
2 years ago |
William Grant
|
e66e9961e1
|
fix: use precasted variables for modes
for DisappearingMessageConversationModeType references
|
2 years ago |
William Grant
|
cafa9d80ec
|
fix: remove all unneeded tslint comments
fixed some eslint errors
|
2 years ago |
William Grant
|
851eca36e3
|
feat: use custom hook useRightOverlayMode
|
2 years ago |
William Grant
|
577278a14d
|
feat: made datatestids mandatory on readablemessages
|
2 years ago |
William Grant
|
a268aeb6d1
|
fix: type state correctly when using useSelector
|
2 years ago |
William Grant
|
f9b0ead150
|
fix: expiretimer now uses a ternary operator
|
2 years ago |
William Grant
|
c73be8aecc
|
fix: use convoId instead of convoName in dep array
for what subtitle to show when changing convos
|
2 years ago |
William Grant
|
fa263430ae
|
fix: remove else and return early
in handleRightPanelToggle
|
2 years ago |
William Grant
|
d6cc4f9c75
|
feat: use custom hook useIsRightPanelShowing
in functional components
|
2 years ago |
William Grant
|
5dbf949bf5
|
fix: styledDot key should be more specific
|
2 years ago |
William Grant
|
bb2ffff83e
|
fix: remove options menu from convo header
in favour of right panel
|
2 years ago |
William Grant
|
33f3a4208e
|
fix: cleanup NoticeBanner jsx
|
2 years ago |
William Grant
|
e5701d388d
|
fix: remove unneeded tslint comment
|
2 years ago |
William Grant
|
9b8bd6fe79
|
fix: removed noBackgroundColor from panel buttons
|
2 years ago |
William Grant
|
286418976b
|
test: updated ChatMessage with disappearing tests
for both modes
|
2 years ago |
William Grant
|
06099966b0
|
fix: make sure to use convo getters
instead of backbone get function
|
2 years ago |
William Grant
|
d89741cb29
|
test: finished insertGroupsFromDBIntoWrapperAndRefresh
|
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
|
bf690868f1
|
test: stub libsession workers in all places
instead of stub the set function
|
2 years ago |
William Grant
|
cc01da5a8a
|
fix: use generated pubkeys
in disappearing message tests
|
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
|
36e114a662
|
test: throw when we want a defined result
this fixings the typings with test when look for props on objects
|
2 years ago |
Keejef
|
95117afeea
|
fix: Refactor settings to use Redux
Refactor setting to use boolean which is stored in redux
|
2 years ago |
William Grant
|
8d87779554
|
chore: remove unneeded stubWindowLog calls
|
2 years ago |
William Grant
|
95852d8002
|
refactor: remove duplicate test
libsession_wrapper_test.ts
|
2 years ago |
William Grant
|
3f843aa72c
|
test: finished processGetExpiriesRequestResponse
|
2 years ago |
William Grant
|
2cd51cc187
|
test: finished buildGetExpiriesRequest
added TypedStub type
|
2 years ago |
William Grant
|
a00b016233
|
test: wip getExpiriesRequest Started
|
2 years ago |
William Grant
|
b9f1378133
|
test: finished processExpireRequestResponse
|
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
|
c4a9555ba8
|
test: added false case for isExpirationTimerUpdate
|
2 years ago |
William Grant
|
bde674cbac
|
test: finished isExpirationTimerUpdate
added generateFakeExpirationTimerUpdate for testing
|
2 years ago |
William Grant
|
bf5bcae4ac
|
refactor: rename generateDisappearingMessage
to generateDisappearingVisibleMessage
|
2 years ago |
William Grant
|
6941682173
|
test: started updateExpireTimer
|
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
|
4971267c69
|
test: finished checkForExpireUpdateInContentMessage
|
2 years ago |
William Grant
|
5fbed0a5f6
|
test: function for generating disappearing messages
|
2 years ago |
William Grant
|
02f1645226
|
fix: resolved lint errors for hasDefinedProperty
part of the protobuf utils
|
2 years ago |
William Grant
|
6f78de0ed3
|
feat: made ExpirationTimerUpdate type
|
2 years ago |
William Grant
|
a1797e73d4
|
fix: remove unneeded comment
|
2 years ago |
William Grant
|
b280358081
|
test: finished changeToDisappearingMessageType tests
the last commit was actually for changeToDisappearingConversationMode
|
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
|
3a930eb323
|
test: start setExpirationStartTimestamp
tested different modes
|
2 years ago |
William Grant
|
6379226410
|
feat: added isValidUnixTimestamp
|
2 years ago |
William Grant
|
cc0ef3502f
|
feat: setup test outline for disappearing messages
|
2 years ago |
William Grant
|
34940adda9
|
feat: backported user_profile test
|
2 years ago |
William Grant
|
9603a64f43
|
fix: messages are now vertically spaced correctly
|
2 years ago |
William Grant
|
dacac64b11
|
fix: messages are now the right way up
I have broken the reverse flexbox
|
2 years ago |
William Grant
|
ca7983caac
|
fix: align expire timers with the member avatars
in groups
|
2 years ago |
William Grant
|
d3fb2d9546
|
fix: removed public-chat-message-wrapper padding
|
2 years ago |
William Grant
|
9cd85a47af
|
feat: move padding globally to the messages list
we dont want individual padding on each message type
|
2 years ago |
William Grant
|
851cd2bd59
|
fix: timer alignment for group update
|
2 years ago |
William Grant
|
b74b0c2cf9
|
fix: timer alignment for data extraction notifications
|
2 years ago |
William Grant
|
ca97420c86
|
fix: timer alignment for timer notifications
|
2 years ago |
William Grant
|
f105c39461
|
fix: timer alignment for call notifications
|
2 years ago |
William Grant
|
29b2f713f1
|
fix: timer alignement for group invitation
|
2 years ago |
William Grant
|
31c0b9ec70
|
fix: timer position for GenericReadableMessages
still need to do other messages
|
2 years ago |
William Grant
|
d7e296841e
|
fix: remove alignment from ExpirableReadableMessage
improved alignment of timer by moving into the MessageContentWithStatus
|
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
|
37bdd08aca
|
fix: correct getter region comments
|
2 years ago |
William Grant
|
101762918c
|
Merge branch 'unstable' into userconfig_disappearingmessage
|
2 years ago |
William Grant
|
caf39d661c
|
feat: commit disappearing remote changes to db
|
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
|
5b7afe0a29
|
fix: disappear synced settings updates
need to trigger the expirationStartTimestamp manually
|
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
|
0dcf48be16
|
refactor: replaced get expires_at calls
with getExpiresAt
|
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
|
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
|
da869bfdd3
|
refactor: rename hook
useconversationusernameorshorten to usenicknameorprofilenameorshortenedpubkey
|
2 years ago |
William Grant
|
dfe0f6866a
|
fix: conversationheadertitle shortens pubkey
|
2 years ago |
William Grant
|
bea539e669
|
feat: when v2 is released migration legacy convos
use the default mode and timer value for the convo type
|
2 years ago |
William Grant
|
c4cc18ad2e
|
feat: dont expire messages that fail to send
|
2 years ago |
William Grant
|
fd73787192
|
feat: anyone in a group can change the setting
before the v2 release
|
2 years ago |
William Grant
|
251f2e1d37
|
fix: single mode is off by default
|
2 years ago |
William Grant
|
38a8012e10
|
refactor: providedexpirationtype to provideddisappearingmode
|
2 years ago |
William Grant
|
029db2d73f
|
refactor: useselectedconversationexpirationtype to useselectedconversationdisappearingmode
|
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 |
William Grant
|
cd2f51684d
|
refactor: disappearingmessageconversationtype to disappearingmessageconversationmodetype
|
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
|
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
|
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
|
3b0d5f55e7
|
feat: added get_expiries typings
|
2 years ago |
William Grant
|
9e21f459dd
|
feat: started get_expiries work
signature now generates and renamed expire file to expireRequest
|
2 years ago |
William Grant
|
3cc155b9e8
|
feat: update the TTL with the snode expire result
|
2 years ago |
William Grant
|
ee5503585a
|
fix: comment out some unnecessary logging
|
2 years ago |
William Grant
|
32b7870e07
|
feat: make sure to use ms for the expireTimer
expireTimer on the model is in seconds so we need to convert it
|
2 years ago |
William Grant
|
7f68107738
|
feat: added retry logic to expireMessageOnSnode
|
2 years ago |
William Grant
|
ae15275206
|
feat: adding proper typings to snode expire code
I dont think the expire value returned is correct, needs debugging
|
2 years ago |
William Grant
|
f2dbcfa305
|
feat: use SubRequest typings for expireOnNodes
created request builder, added logging for now to test
|
2 years ago |
William Grant
|
a2185625c8
|
fix: use TTL_CONFIG in retrieve request
also some comment cleanup
|
2 years ago |
William Grant
|
b5bf6be691
|
fix: show durations for constants on hover
for TTL_DEFAULT and SWARM_POLLING_TIMEOUT
|
2 years ago |
William Grant
|
f045562a33
|
fix: use updateExpireTimer for UserProfile
before we were setting the convo values directly
|
2 years ago |
William Grant
|
8ec6fb9fd7
|
feat: added new save icon
updated DataExtractNotification and Lightbox download icons
|
2 years ago |
William Grant
|
ca944298e0
|
fix: group invitation timer alignment
updated data extraction notification design. Just waiting on icon from ios
|
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 |
keejef
|
8f2a41bc13
|
feat: Allow enter to break line in settings
https://github.com/oxen-io/session-desktop/issues/1486
|
2 years ago |
William Grant
|
60aac9be85
|
fix: regular messages correctly sync again
|
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
|
07097b029d
|
fix: don't send sync messages for outdated changes
|
2 years ago |
William Grant
|
3d8a664da9
|
fix: ignore equal lastMessageChangeTimestamps
|
2 years ago |
William Grant
|
3ba1baaa67
|
fix: single mode value should be off
if disappearing messages isnt on
|
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
|
3d2c1fbe78
|
fix: single mode should show the correct timer values
if a mode is invalid we return no timer options
|
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
|
a65f02a807
|
feat: use checkForExpireUpdateInContentMessage on sync messages
|
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
|
6c47fd274f
|
fix: show disappearing messages subtitle in convo header
when it is toggled on
|
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
|
c93315b0e7
|
fix: make sure lastDisappearingMessageChangeTimestamp is defined before comparing with convo model
|
2 years ago |
William Grant
|
e00ea8d55f
|
fix: make sure disappearing messages is the first item in the conversation header subtitle
|
2 years ago |
William Grant
|
f2a3f51250
|
fix: cleanup
|
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 |