get_feature_for_message


Description:

[ Version ( since = "2.28" ) ]
public unowned SessionFeature? get_feature_for_message (Type feature_type, Message msg)

Gets the first feature in this of type feature_type, provided that it is not disabled for msg.

As with get_feature, this should only be used for features where feature_type is only expected to match a single feature. In particular, if there are two matching features, and the first is disabled on msg, and the second is not, then this will return null, not the second feature.

Parameters:

this

a Session

feature_type

the Type of the feature to get

msg

a Message

Returns:

a SessionFeature, or null. The feature is owned by this.