fixing dat not updating with sent messages

This commit is contained in:
Arjun Patel
2022-01-16 14:18:39 -08:00
parent a335e74838
commit e6914bf61d
2 changed files with 16 additions and 0 deletions
+3
View File
@@ -350,6 +350,9 @@ export default function AudioContextProvider({ children }) {
messagesByTeamMate[selectedTeammate] &&
messagesByTeamMate[selectedTeammate].length > 0
) {
console.log("playing from this cache");
console.log(messagesByTeamMate);
setPlayerSrc(messagesByTeamMate[selectedTeammate][0].audioDataUrl);
} else {
toast("nothing to play");