mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 08:39:22 +01:00
Add poll icon when quoting a poll.
This commit is contained in:
committed by
Cody Henthorne
parent
91b70038e6
commit
b3f74d37e1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user