Fixed error that pushes all kind of activities

Added a method 'matchActivity' that uses the 'filter' config to decide either the activity received by socket should be shown or not.