Skip to content

Commit

Permalink
Improve default notification messages (#4518)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles authored Oct 6, 2023
1 parent a54c02f commit 34bbd7b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions frontend/openchat-push/src/push_sw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,11 +303,8 @@ function defaultMessage(messageType: string): string {
switch (messageTypeLower) {
case "poll":
return "Created a poll";
// Remove this case once the backend is updated to send the correct message type
case "custom":
return "Meme message";
default: {
return `${toTitleCase(messageType)} message`;
return `${toTitleCase(messageType.replace("_", " "))} message`;
}
}
}
Expand Down

0 comments on commit 34bbd7b

Please sign in to comment.