Introduce optional features in the factories
Submitted by George Kiagiadakis
Assigned to Telepathy bugs list
Description
11:05 < d_ed>
whoa I think I've found a pretty serious TpQt bug.
11:06 < d_ed>
if I have in my channel factory Tp::Channel::FeatureConferenceInitialInviteeContacts
11:06 < d_ed>
I can no longer start 1-1 chats
11:06 < d_ed>
ktp-text-ui(28738)/Telepathy-Qt: Nested PendingReady for true failed with "org.freedesktop.Telepathy.Error.NotAvailable" : "Feature depend on interfaces that are not available"
11:06 < d_ed>
ktp-text-ui(28738)/Telepathy-Qt: Preparing proxies for HandleChannels failed with "org.freedesktop.Telepathy.Error.NotAvailable" "Feature depend on interfaces that are not available"
In short, if you request a feature that depends on an interface that might not be always available, things fail when the interface is not available and that is not good. My idea is to implement the concept of "optional features" in the factories, so that you can tell the factory "make this ready if possible, otherwise continue without error".
Version: git master