Fix out of OOB error for ConversationHistory (#5770)
Summary: When user clears chat history and then give a prompt, there is a OOB error. This occurs since `getRecentSavedTextMessages()` didn't check for an empty Message Arraylist. Pull Request resolved: https://github.com/pytorch/executorch/pull/5770 Reviewed By: Riandy Differential Revision: D63659827 Pulled By: cmodi-meta fbshipit-source-id: 1e3157a8f1c17cb1e4b94f9ff7287b53a2b4f2af
C
cmodi-meta committed
f0662bba13152213fc598157b5e80194e8730c69
Parent: e186bc9
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
on 9/30/2024, 10:41:26 PM