Prevent call logs wrongly grouped due to conf-id parameter not used in equal comparison, cf RFC

This commit is contained in:
Sylvain Berfini 2022-05-19 16:20:00 +02:00
parent 4a0eb4d93e
commit bf1f2c3175

View file

@ -117,6 +117,7 @@ class CallLogsListViewModel : ViewModel() {
if (previousCallLogGroup == null) {
previousCallLogGroup = GroupedCallLogData(callLog)
} 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.remoteAddress.equal(callLog.remoteAddress)
) {