mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-23 19:26:18 +02:00
Adds PoW Display to the MasterNote of a Thread
This commit is contained in:
@@ -350,7 +350,7 @@ fun NoteComposeInner(
|
|||||||
}
|
}
|
||||||
|
|
||||||
val pow = noteEvent.getPoWRank()
|
val pow = noteEvent.getPoWRank()
|
||||||
if (pow > 8) {
|
if (pow > 20) {
|
||||||
DisplayPoW(pow)
|
DisplayPoW(pow)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -58,6 +58,7 @@ import com.vitorpamplona.amethyst.ui.components.TranslateableRichTextViewer
|
|||||||
import com.vitorpamplona.amethyst.ui.note.BadgeDisplay
|
import com.vitorpamplona.amethyst.ui.note.BadgeDisplay
|
||||||
import com.vitorpamplona.amethyst.ui.note.BlankNote
|
import com.vitorpamplona.amethyst.ui.note.BlankNote
|
||||||
import com.vitorpamplona.amethyst.ui.note.DisplayFollowingHashtagsInPost
|
import com.vitorpamplona.amethyst.ui.note.DisplayFollowingHashtagsInPost
|
||||||
|
import com.vitorpamplona.amethyst.ui.note.DisplayPoW
|
||||||
import com.vitorpamplona.amethyst.ui.note.DisplayReward
|
import com.vitorpamplona.amethyst.ui.note.DisplayReward
|
||||||
import com.vitorpamplona.amethyst.ui.note.DisplayUncitedHashtags
|
import com.vitorpamplona.amethyst.ui.note.DisplayUncitedHashtags
|
||||||
import com.vitorpamplona.amethyst.ui.note.HiddenNote
|
import com.vitorpamplona.amethyst.ui.note.HiddenNote
|
||||||
@@ -283,6 +284,11 @@ fun NoteMaster(
|
|||||||
if (baseReward != null) {
|
if (baseReward != null) {
|
||||||
DisplayReward(baseReward, baseNote, account, navController)
|
DisplayReward(baseReward, baseNote, account, navController)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val pow = noteEvent.getPoWRank()
|
||||||
|
if (pow > 20) {
|
||||||
|
DisplayPoW(pow)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user