Ejemplo n.º 1
0
 /// <summary>
 /// Remove one or many entries from the calls' history.
 /// </summary>
 /// <param name="logsToRemove">A list of CallLog to remove from history</param>
 /// <returns>A list of CallLogs, without the removed entries</returns>
 public void RemoveCallLogs(IEnumerable <CallLog> logsToRemove)
 {
     // When removing log from history, it will be removed from logsToRemove list too.
     // Using foreach causing the app to crash on a InvalidOperationException, so we are using while
     for (int i = 0; i < logsToRemove.Count(); i++)
     {
         CallLog logToRemove = logsToRemove.ElementAt(i);
         LinphoneCore.RemoveCallLog(logToRemove.NativeLog as LinphoneCallLog);
     }
 }