Prevent call logs wrongly grouped due to conf-id parameter not used in equal comparison, cf RFC
This commit is contained in:
parent
4a0eb4d93e
commit
bf1f2c3175
1 changed files with 1 additions and 0 deletions
|
@ -117,6 +117,7 @@ class CallLogsListViewModel : ViewModel() {
|
||||||
if (previousCallLogGroup == null) {
|
if (previousCallLogGroup == null) {
|
||||||
previousCallLogGroup = GroupedCallLogData(callLog)
|
previousCallLogGroup = GroupedCallLogData(callLog)
|
||||||
} else if (!callLog.wasConference() && // Do not group conference call logs
|
} else if (!callLog.wasConference() && // Do not group conference call logs
|
||||||
|
callLog.wasConference() == previousCallLogGroup.lastCallLog.wasConference() && // Check that both are of the same type, if one has a conf-id and not the other the equal method will return true !
|
||||||
previousCallLogGroup.lastCallLog.localAddress.weakEqual(callLog.localAddress) &&
|
previousCallLogGroup.lastCallLog.localAddress.weakEqual(callLog.localAddress) &&
|
||||||
previousCallLogGroup.lastCallLog.remoteAddress.equal(callLog.remoteAddress)
|
previousCallLogGroup.lastCallLog.remoteAddress.equal(callLog.remoteAddress)
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in a new issue