updated TextMessageModel JS logic to correctly store lastSendDatetime