util/chrono-sync: In Chat, added utility method messageCacheAppend and use to simplify the code.