only run message comparison when type is "chat"
fixes #39