Do not show "Pin" in "more" menu of direct status. (#909)

This commit is contained in:
kyori19 2018-11-07 02:10:07 +09:00 committed by Konrad Pozniak
commit 026292122d
2 changed files with 20 additions and 10 deletions

View file

@ -102,6 +102,10 @@ data class Status(
return (visibility != Visibility.DIRECT && visibility != Visibility.UNKNOWN)
}
fun isPinned(): Boolean {
return pinned ?: false
}
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (other == null || javaClass != other.javaClass) return false