Fix NPE when receiving media only MMS.
This commit is contained in:
parent
7d627ee8be
commit
be47e9e928
1 changed files with 5 additions and 5 deletions
|
@ -14,7 +14,7 @@ import org.whispersystems.signalservice.api.messages.SignalServiceAttachment
|
||||||
import org.whispersystems.signalservice.api.messages.SignalServiceGroupContext
|
import org.whispersystems.signalservice.api.messages.SignalServiceGroupContext
|
||||||
|
|
||||||
class IncomingMediaMessage(
|
class IncomingMediaMessage(
|
||||||
val from: RecipientId,
|
val from: RecipientId?,
|
||||||
val groupId: GroupId? = null,
|
val groupId: GroupId? = null,
|
||||||
val body: String? = null,
|
val body: String? = null,
|
||||||
val isPushMessage: Boolean = false,
|
val isPushMessage: Boolean = false,
|
||||||
|
@ -43,13 +43,13 @@ class IncomingMediaMessage(
|
||||||
val isGroupMessage: Boolean = groupId != null
|
val isGroupMessage: Boolean = groupId != null
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
from: RecipientId,
|
from: RecipientId?,
|
||||||
groupId: Optional<GroupId>,
|
groupId: Optional<GroupId>,
|
||||||
body: String,
|
body: String?,
|
||||||
sentTimeMillis: Long,
|
sentTimeMillis: Long,
|
||||||
serverTimeMillis: Long,
|
serverTimeMillis: Long,
|
||||||
receivedTimeMillis: Long,
|
receivedTimeMillis: Long,
|
||||||
attachments: List<Attachment>,
|
attachments: List<Attachment>?,
|
||||||
subscriptionId: Int,
|
subscriptionId: Int,
|
||||||
expiresIn: Long,
|
expiresIn: Long,
|
||||||
expirationUpdate: Boolean,
|
expirationUpdate: Boolean,
|
||||||
|
@ -76,7 +76,7 @@ class IncomingMediaMessage(
|
||||||
)
|
)
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
from: RecipientId,
|
from: RecipientId?,
|
||||||
sentTimeMillis: Long,
|
sentTimeMillis: Long,
|
||||||
serverTimeMillis: Long,
|
serverTimeMillis: Long,
|
||||||
receivedTimeMillis: Long,
|
receivedTimeMillis: Long,
|
||||||
|
|
Loading…
Add table
Reference in a new issue