[libcommhistory] Add a recipient event model to fetch events from unsaved numbers. Contributes to TJC#143264
As described in these TJC threads:
It would be nice to have the activity listed for not saved contacts in the history of the voicecall-ui app. In fact, the history exists in the database, but is not shown.
It is due to the fact that singlecontacteventmodel.cpp is working only with saved contacts. But if one looks at the code, it is resolving the contact to get the phone details and use them as a WHERE clause in the request.
I'm proposing not to modify this singlecontacteventmodel class, but to introduce an intermediate class parent of it that is working on recipient localUID / remoteUID pairs. Then, the QML binding for contacteventmodel will inherit this recipienteventmodel and adding a property storing a raw phone number would allow to fetch the desired activity for not saved numbers.
It requires also a two lines modification in sailfish-components-contacts/ContactActivityList.qml to declare the phone number instead of the contactid, when this latter is 0.