Add poll icon when quoting a poll.

This commit is contained in:
Michelle Tang
2025-10-16 13:32:33 -04:00
committed by Cody Henthorne
parent 91b70038e6
commit b3f74d37e1
9 changed files with 39 additions and 15 deletions

View File

@@ -164,7 +164,13 @@ fun MessageRecord.isScheduled(): Boolean {
* Returns the QuoteType for this record, as if it was being quoted.
*/
fun MessageRecord.getRecordQuoteType(): QuoteModel.Type {
return if (hasGiftBadge()) QuoteModel.Type.GIFT_BADGE else QuoteModel.Type.NORMAL
return if (hasGiftBadge()) {
QuoteModel.Type.GIFT_BADGE
} else if (hasPoll()) {
QuoteModel.Type.POLL
} else {
QuoteModel.Type.NORMAL
}
}
fun MessageRecord.isEditMessage(): Boolean {