QuickFIx / regression cannot decrypt message (no sender_key)

This commit is contained in:
Valere 2019-07-01 20:34:42 +02:00
parent 8fefdc1019
commit a5584d27af

View file

@ -177,11 +177,7 @@ data class Event(
* @return The curve25519 key that sent this event. * @return The curve25519 key that sent this event.
*/ */
fun getSenderKey(): String? { fun getSenderKey(): String? {
return if (null != mClearEvent) { return mClearEvent?.mSenderCurve25519Key ?: mSenderCurve25519Key
mClearEvent!!.mSenderCurve25519Key
} else {
mSenderCurve25519Key
}
} }
/** /**