mirror of
https://github.com/micahflee/TM-SGNL-Android.git
synced 2025-08-04 11:00:08 +00:00
Revert "archive links messages with preview"
This reverts commit d1fb214cf7
.
This commit is contained in:
parent
d1fb214cf7
commit
5288575f82
1 changed files with 1 additions and 2 deletions
|
@ -7,7 +7,6 @@ import org.tm.archive.database.model.MmsMessageRecord
|
|||
import org.tm.archive.database.model.ThreadRecord
|
||||
import org.tm.archive.ringrtc.RemotePeer
|
||||
|
||||
const val PreviewMessageType = 10485782L//should be as SMS message
|
||||
object Messages {
|
||||
|
||||
fun RemotePeer.stringify() = "RemotePeer: [" +
|
||||
|
@ -15,7 +14,7 @@ object Messages {
|
|||
"]"
|
||||
|
||||
fun MessageRecord.isMultimediaMessage(): Boolean {
|
||||
return isMms && !isMmsNotification && this.type != PreviewMessageType && (this as MmsMessageRecord).let { containsMediaSlide() || sharedContacts.isNotEmpty() }
|
||||
return isMms && !isMmsNotification && (this as MmsMessageRecord).let { containsMediaSlide() || sharedContacts.isNotEmpty() }
|
||||
}
|
||||
|
||||
fun MessageRecord.isStory() = (this as? MmsMessageRecord)?.storyType?.isStory == true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue