diff options
author | Joas Schilling <coding@schilljs.com> | 2022-08-31 07:06:28 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-08-31 08:15:43 +0200 |
commit | a811f2f84a58b86381368b1e646b5ea672d63b62 (patch) | |
tree | c08ecb10097f78fedbf69530b94ddb496ad9f74f /src | |
parent | fa1157a7e11f52009b467bd384ba60182aee3142 (diff) |
Remove unused method
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/store/messagesStore.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/store/messagesStore.js b/src/store/messagesStore.js index 4593fd389..b19b00545 100644 --- a/src/store/messagesStore.js +++ b/src/store/messagesStore.js @@ -209,18 +209,6 @@ const getters = { hasReactions: (state) => (token, messageId) => { return Object.keys(state.messages[token][messageId].reactions).length !== 0 }, - - getSharedFileLink: (state) => (token, fileId) => { - // Reverse the messages array, the message containing the file we want - // is going to be one of the last ones - const reversedMessages = Object.values(state.messages[token]).reverse() - for (const message of reversedMessages) { - if (message.messageParameters?.file?.id === fileId) { - return message.messageParameters.file.link - } - } - return undefined - }, } const mutations = { |