mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 19:49:33 +01:00
Merge pull request #4223 from nextcloud/bugfix/noid/fixNoChatForOldNcServerVersion
fix to load chat for old server version
This commit is contained in:
commit
3b51fde300
@ -1744,7 +1744,9 @@ class CallActivity : CallBaseActivity() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun startCallTimeCounter(callStartTime: Long?) {
|
private fun startCallTimeCounter(callStartTime: Long?) {
|
||||||
if (callStartTime != null && hasSpreedFeatureCapability(
|
if (callStartTime != null &&
|
||||||
|
callStartTime != 0L &&
|
||||||
|
hasSpreedFeatureCapability(
|
||||||
conversationUser!!.capabilities!!.spreedCapability!!, SpreedFeatures.RECORDING_V1
|
conversationUser!!.capabilities!!.spreedCapability!!, SpreedFeatures.RECORDING_V1
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
|
@ -144,16 +144,16 @@ data class Conversation(
|
|||||||
var callRecording: Int = 0,
|
var callRecording: Int = 0,
|
||||||
|
|
||||||
@JsonField(name = ["avatarVersion"])
|
@JsonField(name = ["avatarVersion"])
|
||||||
var avatarVersion: String? = null,
|
var avatarVersion: String? = "",
|
||||||
|
|
||||||
// Be aware that variables with "is" at the beginning will lead to the error:
|
// Be aware that variables with "is" at the beginning will lead to the error:
|
||||||
// "@JsonField annotation can only be used on private fields if both getter and setter are present."
|
// "@JsonField annotation can only be used on private fields if both getter and setter are present."
|
||||||
// Instead, name it with "has" at the beginning: isCustomAvatar -> hasCustomAvatar
|
// Instead, name it with "has" at the beginning: isCustomAvatar -> hasCustomAvatar
|
||||||
@JsonField(name = ["isCustomAvatar"])
|
@JsonField(name = ["isCustomAvatar"])
|
||||||
var hasCustomAvatar: Boolean? = null,
|
var hasCustomAvatar: Boolean? = false,
|
||||||
|
|
||||||
@JsonField(name = ["callStartTime"])
|
@JsonField(name = ["callStartTime"])
|
||||||
var callStartTime: Long? = null,
|
var callStartTime: Long? = 0L,
|
||||||
|
|
||||||
@JsonField(name = ["recordingConsent"])
|
@JsonField(name = ["recordingConsent"])
|
||||||
var recordingConsentRequired: Int = 0,
|
var recordingConsentRequired: Int = 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user