unclear whether there can be duplicate satisfied requests
Submitted by Simon McVittie
Assigned to Telepathy bugs list
Description
From Bug #24120:
- /* collect object paths into a hash table, to drop duplicates */
- for (c = channels; c != NULL; c = c->next)
- {
const GList *reqs = _mcd_channel_get_satisfied_requests (c->data);
Why would there be duplicate satisfied requests?
Pre-existing problem, I just moved the code. I believe that there should never be duplicates, because each request is satisfied by at most one channel - but beware that McdChannel is sometimes a Channel and sometimes a ChannelRequest, so it's non-obvious.
When I refactor MC so McdChannel doesn't exist (long-term goal), this can probably start asserting. For now, may I "resolve" this by filing a bug, and adding a FIXME comment referencing it?