Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 75d38dfe authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Remove conference participants from cached list"

parents d16769a7 531ec216
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -2452,6 +2452,19 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
            //detach the disconnected connections
            conn.getCall().detach(conn);
            removeConnection(conn);

            // remove conference participants from the cached list when call is disconnected
            List<ConferenceParticipant> cpList = imsCall.getConferenceParticipants();
            if (cpList != null) {
                for (ConferenceParticipant cp : cpList) {
                    String number = ConferenceParticipant.getParticipantAddress(cp.getHandle(),
                            getCountryIso()).getSchemeSpecificPart();
                    if (!TextUtils.isEmpty(number)) {
                        String formattedNumber = getFormattedPhoneNumber(number);
                        mPhoneNumAndConnTime.remove(formattedNumber);
                    }
                }
            }
        }

        if (changed) {