Skip to content

Commit

Permalink
add comment, rename
Browse files Browse the repository at this point in the history
Signed-off-by: phuoc <[email protected]>
  • Loading branch information
phuocbitmark committed Nov 8, 2024
1 parent e2b10a7 commit 84fe4fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/service/announcement/announcement_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ class AnnouncementServiceImpl implements AnnouncementService {
await _saveAnnouncement(announcement.markAsRead());
}

/// unread and in-app enabled announcements
List<AnnouncementLocal> _getAnnouncementsToShow() {
_queue.removeWhere((element) => element.read || !element.inAppEnabled);
if (_queue.isEmpty) {
Expand Down
1 change: 1 addition & 0 deletions lib/service/customer_support_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ class CustomerSupportServiceImpl extends CustomerSupportService {

bool _isProcessingDraftMessages = false;

/// will add this after backend support
static const _supportChatNotificationTypes = [];

Future<List<Issue>> _getIssues() async {
Expand Down
4 changes: 2 additions & 2 deletions lib/service/user_interactivity_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ class UserInteractivityServiceImpl implements UserInteractivityService {
unawaited(
_metricClientService.addEvent(MetricEventName.dailyLiked, data: data));
log.info('Liked daily work: ${dailyToken.tokenID}');
await _likeDailyWorkActionResponse();
await _countDailyLiked();
}

Future<void> _likeDailyWorkActionResponse() async {
Future<void> _countDailyLiked() async {
final isNotificationEnabled = OneSignal.Notifications.permission;
if (!isNotificationEnabled) {
final likedCount = _configurationService.getDailyLikedCount();
Expand Down

0 comments on commit 84fe4fc

Please sign in to comment.