Optional notification message

This commit is contained in:
laurenspriem
2025-06-05 08:45:36 +05:30
parent 229d438181
commit 544078a40c
2 changed files with 3 additions and 4 deletions

View File

@@ -308,7 +308,7 @@ class MemoriesCacheService {
final s = await LanguageService.s;
await NotificationService.instance.scheduleNotification(
s.onThisDay,
s.lookBackOnYourMemories,
message: s.lookBackOnYourMemories,
id: memory.id.hashCode,
channelID: "onThisDay",
channelName: s.onThisDay,
@@ -376,7 +376,6 @@ class MemoriesCacheService {
memory.personName != null
? "Happy birthday to ${memory.personName}! 🎉"
: "Happy birthday! 🥳",
// TODO:lau (after mergin main): change `scheduleNotification` api to make message optional
// TODO:lau (after mergin main): extract strings
id: memory.id.hashCode,
channelID: "birthday",

View File

@@ -143,8 +143,8 @@ class NotificationService {
}
Future<void> scheduleNotification(
String title,
String message, {
String title, {
String? message,
required int id,
String channelID = "io.ente.photos",
String channelName = "ente",