MCPcopy Create free account
hub / github.com/VadimNotJustDev/SignalClone / setAsRead

Function setAsRead

components/Message/Message.tsx:120–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118 }, [message, user]);
119
120 const setAsRead = async () => {
121 if (isMe === false && message.status !== "READ") {
122 await DataStore.save(
123 MessageModel.copyOf(message, (updated) => {
124 updated.status = "READ";
125 })
126 );
127 }
128 };
129
130 const deleteMessage = async () => {
131 await DataStore.delete(message);

Callers 1

MessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected