fixed wrong seenMessages.count() check: != 0 -> == 0