-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adjust field in LinkCapabilities struct #311
Conversation
// https://github.com/signalapp/Signal-Desktop/blob/1e57db6aa4786dcddc944349e4894333ac2ffc9e/ts/textsecure/WebAPI.ts#L1287 | ||
impl Default for LinkCapabilities { | ||
fn default() -> Self { | ||
Self { delete_sync: true } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uhh, do we actually implement that capability? 🫣
Maybe it was worth setting it to false
? :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's hardcoded as true in Signal-Desktop so... 🤷🏻♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeh okay, probably since SD implements that capability. If we don't make any change, nor we understand what the capability is about, then we might be signing up for a crash-and-burn down the road.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair, let me try if it works with false
😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, if we can just find what this means, and document it, that'd also be fine I suppose :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel the default()
is pointless here, we could just document the only place it's used in. And we need to know what the flag means before we set it either way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it's a matter of taste, I'm not attached to any way of doing it 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, if we can just find what this means, and document it, that'd also be fine I suppose :)
Can confirm that you cannot link when setting the flag to false
.
Just noticed this was merged already. Anyway... I found out what Signal Android does:
Whisperfish at least already supports individual message deletes, but this feature is about syncing thread deletes i.e. deleting full conversations across devices. That can't be done in libsignal IIUC and so has to be a flag provided by the client and not hardcoded in libsignal-service. Please change the default to false and provide the API to set the flag. Thanks. |
|
This fixes linking.