Correctly addresses a report to a note (and not to a user)
This commit is contained in:
@@ -162,6 +162,7 @@ object LocalCache {
|
|||||||
event.content,
|
event.content,
|
||||||
object : TypeToken<Map<String, ContactListEvent.ReadWrite>>() {}.type
|
object : TypeToken<Map<String, ContactListEvent.ReadWrite>>() {}.type
|
||||||
)
|
)
|
||||||
|
|
||||||
user.updateRelays(relays)
|
user.updateRelays(relays)
|
||||||
}
|
}
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
@@ -292,8 +293,10 @@ object LocalCache {
|
|||||||
|
|
||||||
//Log.d("RP", "New Report ${event.content} by ${note.author?.toBestDisplayName()} ${formattedDateTime(event.createdAt)}")
|
//Log.d("RP", "New Report ${event.content} by ${note.author?.toBestDisplayName()} ${formattedDateTime(event.createdAt)}")
|
||||||
// Adds notifications to users.
|
// Adds notifications to users.
|
||||||
mentions.forEach {
|
if (repliesTo.isEmpty()) {
|
||||||
it.addReport(note)
|
mentions.forEach {
|
||||||
|
it.addReport(note)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
repliesTo.forEach {
|
repliesTo.forEach {
|
||||||
it.addReport(note)
|
it.addReport(note)
|
||||||
|
|||||||
Reference in New Issue
Block a user