private void GetHistoryInfoFromStore(IStore store) { if (!saveAndRestoreChat) { return; } if (store.ContainsKey(HistoryFileKey)) { var path = store[HistoryFileKey]; LoadHistoryFromFile(path); } else { store.AddOrReplace(HistoryFileKey, Path.Combine(Application.persistentDataPath, "chatHistory.txt")); } }