nit: Since we only check this for incoming message, maybe we can just put this toggle in isIncoming block below and simply check sentTimestamp.