audioCallCapability, videoCallCapability and fileTransferCapability perform two functions 1) A gabble hack to bodge the capabilities 2) checks that both you and selfContact have the capability to do something I want these removed and replaced wtih Tp::ContactCapabilities capabilities(); //includes gabble hack. Can be removed at any point Tp::ContactCapabilities commonCapabilities(); //returns caps that both you and selfContact can do This should not be a hardcoded list, but instead loop through all capabilities() and only include ones that are in selfContact's capabilities too.
Dear user, unfortunately Telepathy is no longer maintained. Please migrate to another solution, e.g. for Jabber a possibility is Kaidan, for Matrix a candidate is NeoChat.