Enable Sender Side Image Previews #327
No reviewers
Labels
No Label
android
arch
backlog
blocked-on-external
bug
bugbash
component/bindings
component/bine
component/connectivity
component/cwtch
component/tapir
component/ui
cwtch-1.14
cwtch-1.15
cwtch-beta-1.1
cwtch-beta-1.10
cwtch-beta-1.11
cwtch-beta-1.12
cwtch-beta-1.13
cwtch-beta-1.2
cwtch-beta-1.3
cwtch-beta-1.4
cwtch-beta-1.5
cwtch-beta-1.5.x
cwtch-beta-1.6
cwtch-beta-1.7
cwtch-beta-1.8
cwtch-beta-1.9
design
duplicate
enhancement
flutter
funding-needed
help wanted
hybrid-groups
in-nightly
in-progress
invalid
ios
linux
mac
need-replication-or-investigation
ops
packaging
post-stable
question
questionable
requires-more-effort-than-we-can-spare
rust
scheduled
stable-blocker
tails
testing-needed
tests
tor
waiting-on-fix-confirmation
waiting-on-new-flutter-feature
whonix
windows
wontfix
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cwtch.im/cwtch-ui#327
Loading…
Reference in New Issue
No description provided.
Delete Branch "sender_size"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -244,6 +246,11 @@ class CwtchNotifier {
case "UpdatedProfileAttribute":
if (data["Key"] == "public.profile.name") {
profileCN.getProfile(data["ProfileOnion"])?.nickname = data["Data"];
} else if (data["Key"].toString().endsWith(".path")) {
should probably add a
startsWith
here also@ -246,1 +248,4 @@
profileCN.getProfile(data["ProfileOnion"])?.nickname = data["Data"];
} else if (data["Key"].toString().endsWith(".path")) {
// local.conversation.filekey.path
List<String> keyparts = data["Key"].toString().split(".");
and a len(keyparts) check
@ -253,7 +253,18 @@ class ProfileInfoState extends ChangeNotifier {
}
}
void downloadSetPathDangerous(String fileKey, String path) {
needs a comment explaining "dangerous"
@ -256,1 +264,4 @@
}
String? downloadFinalPath(String fileKey) {
var path = this._downloads[fileKey];
delete
@ -61,0 +62,4 @@
if (downloadComplete && path == null && metadata.attributes["filepath"] != null) {
path = metadata.attributes["filepath"];
} else if (downloadComplete && path != null && metadata.attributes["filepath"] == null) {
if (metadata.attributes["filepath"] == null) {
redundant, remove
@ -82,2 +94,4 @@
senderDisplayStr = Provider.of<MessageMetadata>(context).senderHandle;
}
} else {
senderIsContact = true;
refactor or at least comment
WIP: Enable Sender Side Image Previewsto Enable Sender Side Image PreviewsDrone Build Status: success
https://build.openprivacy.ca/cwtch.im/cwtch-ui/495