Include only incoming/outgoing messages in reporting (#429)

* Skip activity messages from reporting

* Makes reportable? as access list for reporting
This commit is contained in:
Subin T P
2020-01-14 00:50:18 +05:30
committed by Sojan Jose
parent 18bf1a9e62
commit cc180b77ce
3 changed files with 48 additions and 5 deletions

View File

@@ -66,6 +66,10 @@ class Message < ApplicationRecord
data
end
def reportable?
incoming? || outgoing?
end
private
def dispatch_event