Skip to content

Commit

Permalink
chore: shorten and unify notification text across platforms (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya authored Feb 26, 2025
1 parent 800ec40 commit 05cfc5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions assets/android/MessagingService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ class MessagingService : FirebaseMessagingService() {

var notificationText = ""
if (notificationType == "payment_sent") {
notificationText = "You have sent $amount sats ⚡️"
notificationText = "You sent $amount sats ⚡️"
} else {
notificationText = "You have received $amount sats ⚡️"
notificationText = "You received $amount sats ⚡️"
}

val intent = Intent(Intent.ACTION_VIEW).apply {
Expand Down
4 changes: 2 additions & 2 deletions assets/ios/NotificationService.m
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ - (void)didReceiveNotificationRequest:(UNNotificationRequest *)request withConte
self.bestAttemptContent.title = walletName;

if ([notificationType isEqualToString:@"payment_sent"]) {
self.bestAttemptContent.body = [NSString stringWithFormat:@"You just sent %.0f sats ⚡️", amountInSats];
self.bestAttemptContent.body = [NSString stringWithFormat:@"You sent %.0f sats ⚡️", amountInSats];
} else {
self.bestAttemptContent.body = [NSString stringWithFormat:@"You just received %.0f sats ⚡️", amountInSats];
self.bestAttemptContent.body = [NSString stringWithFormat:@"You received %.0f sats ⚡️", amountInSats];
}

self.contentHandler(self.bestAttemptContent);
Expand Down

0 comments on commit 05cfc5f

Please sign in to comment.