Use the contact id to compare contacts rather than the contact pointer
Use the contact id to compare contacts rather than the contact pointer

Contact pointers disappear easily and that doesn't map well to how the
pinned model works, especially considering that it might be use before and
after setting everything up.

KDE/ktp-common-internals,KDE/ktp-common-internals,KDE/ktp-common-internals