mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-03-26 17:52:29 +01:00
Removes debugging logs
This commit is contained in:
parent
739a073d4e
commit
f38383d4e4
@ -1402,10 +1402,6 @@ object LocalCache {
|
||||
|
||||
val replyTo = computeReplyTo(event)
|
||||
|
||||
if (event.id == "e01875f2f4c31a7512a56e677e135d6d2d28cbd7b7b0d5610e4b28fc4869f181") {
|
||||
println("AABBCC ${replyTo.joinToString(",") { it.idHex} }")
|
||||
}
|
||||
|
||||
note.loadEvent(event, author, replyTo)
|
||||
|
||||
// Log.d("CM", "New Chat Note (${note.author?.toBestDisplayName()} ${note.event?.content()}
|
||||
|
@ -194,25 +194,10 @@ open class BaseTextNoteEvent(
|
||||
// removes forks from itself.
|
||||
}.map { it.toTag() }
|
||||
|
||||
if (id == "e01875f2f4c31a7512a56e677e135d6d2d28cbd7b7b0d5610e4b28fc4869f181") {
|
||||
val newStyleReply = tags.lastOrNull { it.size > 3 && it[0] == "e" && it[3] == "reply" }?.get(1)
|
||||
val newStyleRoot = tags.lastOrNull { it.size > 3 && it[0] == "e" && it[3] == "root" }?.get(1)
|
||||
|
||||
println("AABBCC 1 Root: $newStyleRoot")
|
||||
println("AABBCC 1 Reply: $newStyleReply")
|
||||
|
||||
println("AABBCC 1 Certain: ${certainRepliesTo.joinToString(",")}")
|
||||
println("AABBCC 1 Uncertain: ${uncertainRepliesTo.joinToString(",")}")
|
||||
}
|
||||
|
||||
if (certainRepliesTo.isEmpty() && uncertainRepliesTo.isEmpty() && tagAddresses.isEmpty()) return emptyList()
|
||||
|
||||
val citations = findCitations()
|
||||
|
||||
if (id == "e01875f2f4c31a7512a56e677e135d6d2d28cbd7b7b0d5610e4b28fc4869f181") {
|
||||
println("AABBCC 2 ${citations.joinToString(",") { it }}")
|
||||
}
|
||||
|
||||
return if (citations.isEmpty()) {
|
||||
if (certainRepliesTo.isNotEmpty()) {
|
||||
certainRepliesTo + tagAddresses
|
||||
|
Loading…
x
Reference in New Issue
Block a user