Unverified Commit f27ddf2e authored by Alex Junior's avatar Alex Junior Committed by GitHub
Browse files

chore: migrate getFileUrlFromMessage to ts (#3734)

parent 6f27126f
export default function (message) { export default function (message: { type: string; url: string }) {
if (/image/.test(message.type)) { if (/image/.test(message.type)) {
return { image_url: message.url }; return { image_url: message.url };
} }
......
...@@ -71,6 +71,8 @@ interface IMessageItem { ...@@ -71,6 +71,8 @@ interface IMessageItem {
msg?: string; msg?: string;
starred: boolean; starred: boolean;
pinned: boolean; pinned: boolean;
type: string;
url: string;
} }
interface IParams { interface IParams {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment