Format file

This commit is contained in:
Benoit Marty 2022-04-06 11:18:45 +02:00
parent e8f421fe34
commit 785ccc8bc4

View File

@ -202,7 +202,9 @@ data class Event(
fun getDecryptedTextSummary(): String? {
if (isRedacted()) return "Message Deleted"
val text = getDecryptedValue() ?: run {
if (isPoll()) { return getPollQuestion() ?: "created a poll." }
if (isPoll()) {
return getPollQuestion() ?: "created a poll."
}
return null
}