NotificationHandler.RemoveSubscription does not work for user routing status

The topic subscription for user routing status updates does not successfully get removed from the type map.

If you subscribe to for example v2.users.{some-guid}.routingStatus, when you add the subscription on line 118

The string key that goes into the type map adds a .ToLowerInvariant() call to the topic name, resulting in routingstatus instead of routingStatus.

This is fine until you go to remove the subscription later. If you try to remove the subscription using the string you subscribed to, it will silently fail on line 152

Because the key stored in the private type map is (unbeknown to the user) all lower case, even though the API only accepts routingStatus with a capital S as the topic string.

Changing line 152

to be _typeMap.Remove(topic.ToLowerInvariant()); worked for me.

Hi,

This appears to be related to a recent switch in our code generator tooling. I'll have a release of this ready for the next release of the SDK.

1 Like

Confirmed, release 145.0.1 contains this fix.

Thanks so much!

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.