Skip to content

Commit

Permalink
fix name duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaSat committed Nov 14, 2024
1 parent f33eb8b commit ac2f31b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ class NotificationsService : Service() {
NostrClient.getNip05Content(event.pubKey, onResponse = {
try {
var authorName = it?.getString("name")
if (authorName?.isNotEmpty() == true) {
if (authorName?.isNotEmpty() == true && !title.contains(authorName)) {
title += " from $authorName"
}
} catch (e: JSONException) { }
Expand Down

0 comments on commit ac2f31b

Please sign in to comment.