Compare commits
3 Commits
3.2.0+133
...
baed28bef7
| Author | SHA1 | Date | |
|---|---|---|---|
| baed28bef7 | |||
| 7a6eecf628 | |||
| 6a63bc235b |
@@ -47,6 +47,7 @@ class NotificationService: UNNotificationServiceExtension {
|
|||||||
private func processNotification(request: UNNotificationRequest, content: UNMutableNotificationContent) throws {
|
private func processNotification(request: UNNotificationRequest, content: UNMutableNotificationContent) throws {
|
||||||
switch content.userInfo["type"] as? String {
|
switch content.userInfo["type"] as? String {
|
||||||
case "messages.new":
|
case "messages.new":
|
||||||
|
content.categoryIdentifier = "REPLYABLE_MESSAGE"
|
||||||
try handleMessagingNotification(request: request, content: content)
|
try handleMessagingNotification(request: request, content: content)
|
||||||
default:
|
default:
|
||||||
try handleDefaultNotification(content: content)
|
try handleDefaultNotification(content: content)
|
||||||
@@ -60,8 +61,6 @@ class NotificationService: UNNotificationServiceExtension {
|
|||||||
|
|
||||||
let pfpIdentifier = meta["pfp"] as? String
|
let pfpIdentifier = meta["pfp"] as? String
|
||||||
|
|
||||||
content.categoryIdentifier = "REPLYABLE_MESSAGE"
|
|
||||||
|
|
||||||
let metaCopy = meta as? [String: Any] ?? [:]
|
let metaCopy = meta as? [String: Any] ?? [:]
|
||||||
let pfpUrl = pfpIdentifier != nil ? getAttachmentUrl(for: pfpIdentifier!) : nil
|
let pfpUrl = pfpIdentifier != nil ? getAttachmentUrl(for: pfpIdentifier!) : nil
|
||||||
|
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ class MarketplaceWebFeedsScreen extends HookConsumerWidget {
|
|||||||
searchController.clear();
|
searchController.clear();
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}, [query.value]);
|
}, [query]);
|
||||||
|
|
||||||
// Clean up timer on dispose
|
// Clean up timer on dispose
|
||||||
useEffect(() {
|
useEffect(() {
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ class MarketplaceStickersScreen extends HookConsumerWidget {
|
|||||||
searchController.clear();
|
searchController.clear();
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}, [query.value]);
|
}, [query]);
|
||||||
|
|
||||||
// Clean up timer on dispose
|
// Clean up timer on dispose
|
||||||
useEffect(() {
|
useEffect(() {
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ class PostFeaturedList extends HookConsumerWidget {
|
|||||||
'PostFeaturedList: isCollapsed changed to ${isCollapsed.value}',
|
'PostFeaturedList: isCollapsed changed to ${isCollapsed.value}',
|
||||||
);
|
);
|
||||||
return null;
|
return null;
|
||||||
}, [isCollapsed.value]);
|
}, [isCollapsed]);
|
||||||
|
|
||||||
useEffect(() {
|
useEffect(() {
|
||||||
if (featuredPostsAsync.hasValue && featuredPostsAsync.value!.isNotEmpty) {
|
if (featuredPostsAsync.hasValue && featuredPostsAsync.value!.isNotEmpty) {
|
||||||
@@ -93,7 +93,7 @@ class PostFeaturedList extends HookConsumerWidget {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}, [featuredPostsAsync.value]);
|
}, [featuredPostsAsync]);
|
||||||
|
|
||||||
return ClipRRect(
|
return ClipRRect(
|
||||||
borderRadius: const BorderRadius.all(Radius.circular(8)),
|
borderRadius: const BorderRadius.all(Radius.circular(8)),
|
||||||
|
|||||||
@@ -36,46 +36,50 @@ class PostShuffleScreen extends HookConsumerWidget {
|
|||||||
bottom:
|
bottom:
|
||||||
kBottomControlHeight + MediaQuery.of(context).padding.bottom,
|
kBottomControlHeight + MediaQuery.of(context).padding.bottom,
|
||||||
),
|
),
|
||||||
child:
|
child: Builder(
|
||||||
(postListState.value?.items.length ?? 0) > 0
|
key: ValueKey(postListState.value?.items.length ?? 0),
|
||||||
? CardSwiper(
|
builder: (context) {
|
||||||
controller: cardSwiperController,
|
if ((postListState.value?.items.length ?? 0) > 0) {
|
||||||
cardsCount: postListState.value!.items.length,
|
return CardSwiper(
|
||||||
isLoop: false,
|
controller: cardSwiperController,
|
||||||
cardBuilder: (
|
cardsCount: postListState.value!.items.length,
|
||||||
context,
|
isLoop: false,
|
||||||
index,
|
cardBuilder: (
|
||||||
horizontalOffsetPercentage,
|
context,
|
||||||
verticalOffsetPercentage,
|
index,
|
||||||
) {
|
horizontalOffsetPercentage,
|
||||||
return Center(
|
verticalOffsetPercentage,
|
||||||
child: ConstrainedBox(
|
) {
|
||||||
constraints: BoxConstraints(maxWidth: 540),
|
return Center(
|
||||||
child: SingleChildScrollView(
|
child: ConstrainedBox(
|
||||||
child: Card(
|
constraints: BoxConstraints(maxWidth: 540),
|
||||||
margin: EdgeInsets.zero,
|
child: SingleChildScrollView(
|
||||||
child: ClipRRect(
|
child: Card(
|
||||||
borderRadius: const BorderRadius.all(
|
margin: EdgeInsets.zero,
|
||||||
Radius.circular(8),
|
child: ClipRRect(
|
||||||
),
|
borderRadius: const BorderRadius.all(
|
||||||
child: PostActionableItem(
|
Radius.circular(8),
|
||||||
item: postListState.value!.items[index],
|
),
|
||||||
),
|
child: PostActionableItem(
|
||||||
|
item: postListState.value!.items[index],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
),
|
||||||
},
|
);
|
||||||
onEnd: () {
|
},
|
||||||
if (postListState.value?.hasMore ?? true) {
|
onEnd: () async {
|
||||||
postListNotifier.fetch(
|
if (postListState.value?.hasMore ?? true) {
|
||||||
cursor: postListState.value?.nextCursor,
|
postListNotifier.forceRefresh();
|
||||||
);
|
}
|
||||||
}
|
},
|
||||||
},
|
);
|
||||||
)
|
} else {
|
||||||
: Center(child: CircularProgressIndicator()),
|
return Center(child: CircularProgressIndicator());
|
||||||
|
}
|
||||||
|
},
|
||||||
|
),
|
||||||
),
|
),
|
||||||
Positioned(
|
Positioned(
|
||||||
left: 0,
|
left: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user