🐛 Fix web uploading
This commit is contained in:
parent
df22b65777
commit
8e8be52658
@ -152,6 +152,8 @@ class WebSocketProvider extends GetxController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<void> registerPushNotifications() async {
|
Future<void> registerPushNotifications() async {
|
||||||
|
if (PlatformInfo.isWeb) return;
|
||||||
|
|
||||||
final prefs = await SharedPreferences.getInstance();
|
final prefs = await SharedPreferences.getInstance();
|
||||||
if (prefs.getBool('service_background_notification') == true) {
|
if (prefs.getBool('service_background_notification') == true) {
|
||||||
log('Background notification service has been enabled, skip register push notifications');
|
log('Background notification service has been enabled, skip register push notifications');
|
||||||
|
@ -312,7 +312,9 @@ class _AttachmentEditorPopupState extends State<AttachmentEditorPopup> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildQueueEntry(AttachmentUploadTask element, int index) {
|
Widget _buildQueueEntry(AttachmentUploadTask element, int index) {
|
||||||
final extName = extension(element.file.path).substring(1);
|
final extName = element.file.name.contains('.')
|
||||||
|
? extension(element.file.name).substring(1)
|
||||||
|
: '';
|
||||||
final canBeCrop = ['png', 'jpg', 'jpeg', 'gif'].contains(extName);
|
final canBeCrop = ['png', 'jpg', 'jpeg', 'gif'].contains(extName);
|
||||||
|
|
||||||
return Container(
|
return Container(
|
||||||
|
Loading…
Reference in New Issue
Block a user