forked from cwtch.im/cwtch-ui
Update Goldens
This commit is contained in:
parent
bf4cfde7df
commit
62bca86c19
|
@ -259,13 +259,15 @@ class CwtchNotifier {
|
||||||
case "UpdatedProfileAttribute":
|
case "UpdatedProfileAttribute":
|
||||||
if (data["Key"] == "public.profile.name") {
|
if (data["Key"] == "public.profile.name") {
|
||||||
profileCN.getProfile(data["ProfileOnion"])?.nickname = data["Data"];
|
profileCN.getProfile(data["ProfileOnion"])?.nickname = data["Data"];
|
||||||
} else if (data["Key"].toString().startsWith("local.filesharing.") && data["Key"].toString().endsWith(".path")) {
|
} else if (data["Key"].toString().startsWith("local.filesharing.")) {
|
||||||
|
if (data["Key"].toString().endsWith(".path")) {
|
||||||
// local.conversation.filekey.path
|
// local.conversation.filekey.path
|
||||||
List<String> keyparts = data["Key"].toString().split(".");
|
List<String> keyparts = data["Key"].toString().split(".");
|
||||||
if (keyparts.length == 5) {
|
if (keyparts.length == 5) {
|
||||||
String filekey = keyparts[2] + "." + keyparts[3];
|
String filekey = keyparts[2] + "." + keyparts[3];
|
||||||
profileCN.getProfile(data["ProfileOnion"])?.downloadSetPathForSender(filekey, data["Data"]);
|
profileCN.getProfile(data["ProfileOnion"])?.downloadSetPathForSender(filekey, data["Data"]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
EnvironmentConfig.debugLog("unhandled set attribute event: ${data['Key']}");
|
EnvironmentConfig.debugLog("unhandled set attribute event: ${data['Key']}");
|
||||||
}
|
}
|
||||||
|
|
|
@ -94,7 +94,8 @@ class _AddEditProfileViewState extends State<AddEditProfileView> {
|
||||||
cursor: Provider.of<Settings>(context).isExperimentEnabled(ImagePreviewsExperiment) ? SystemMouseCursors.click : SystemMouseCursors.basic,
|
cursor: Provider.of<Settings>(context).isExperimentEnabled(ImagePreviewsExperiment) ? SystemMouseCursors.click : SystemMouseCursors.basic,
|
||||||
child: GestureDetector(
|
child: GestureDetector(
|
||||||
// don't allow setting of profile images if the image previews experiment is disabled.
|
// don't allow setting of profile images if the image previews experiment is disabled.
|
||||||
onTap: Provider.of<AppState>(context, listen: false).disableFilePicker || !Provider.of<Settings>(context, listen: false).isExperimentEnabled(ImagePreviewsExperiment)
|
onTap: Provider.of<AppState>(context, listen: false).disableFilePicker ||
|
||||||
|
!Provider.of<Settings>(context, listen: false).isExperimentEnabled(ImagePreviewsExperiment)
|
||||||
? null
|
? null
|
||||||
: () {
|
: () {
|
||||||
filesharing.showFilePicker(context, MaxImageFileSharingSize, (File file) {
|
filesharing.showFilePicker(context, MaxImageFileSharingSize, (File file) {
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 6.6 KiB |
Loading…
Reference in New Issue