fix: cleanup TODOS

pull/2757/head
William Grant 2 years ago
parent d60d2c8c75
commit fb51b20096

@ -155,8 +155,6 @@ export const SessionMessagesList = (props: {
return [<CallNotification key={messageId} {...msgProps} />, ...componentToMerge]; return [<CallNotification key={messageId} {...msgProps} />, ...componentToMerge];
} }
// TODO Move Quote rendering logic here maybe?
if (!messageProps) { if (!messageProps) {
return null; return null;
} }

@ -458,7 +458,6 @@ export async function uploadOurAvatar(newAvatarDecrypted?: ArrayBuffer) {
} }
export async function replyToMessage(messageId: string) { export async function replyToMessage(messageId: string) {
// TODO Use Quote Lookup Object here
const quotedMessageModel = await Data.getMessageById(messageId); const quotedMessageModel = await Data.getMessageById(messageId);
if (!quotedMessageModel) { if (!quotedMessageModel) {
window.log.warn('Failed to find message to reply to'); window.log.warn('Failed to find message to reply to');

@ -567,7 +567,6 @@ function handleMessageExpiredOrDeleted(
if (messageInStoreIndex >= 0) { if (messageInStoreIndex >= 0) {
// Check if the message is quoted somewhere, and if so, remove it from the quotes // Check if the message is quoted somewhere, and if so, remove it from the quotes
const msgProps = state.messages[messageInStoreIndex].propsForMessage; const msgProps = state.messages[messageInStoreIndex].propsForMessage;
// TODO check if message is a group or public group because we will need to use the server timestamp
const { timestamp, sender } = msgProps; const { timestamp, sender } = msgProps;
if (timestamp && sender) { if (timestamp && sender) {
const message2Delete = editedQuotes[`${timestamp}-${sender}`]; const message2Delete = editedQuotes[`${timestamp}-${sender}`];

Loading…
Cancel
Save