Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #63 from verticalsync/dev
Browse files Browse the repository at this point in the history
(vc/dev) Fix MessageLogger edit Timestamp component
  • Loading branch information
verticalsync authored Feb 14, 2024
2 parents f07ef17 + 74d3087 commit f2934c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/messageLogger/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { Devs } from "@utils/constants";
import { Logger } from "@utils/Logger";
import definePlugin, { OptionType } from "@utils/types";
import { findByPropsLazy } from "@webpack";
import { ChannelStore, FluxDispatcher, i18n, Menu, moment, Parser, Timestamp, UserStore } from "@webpack/common";
import { ChannelStore, FluxDispatcher, i18n, Menu, Parser, Timestamp, UserStore } from "@webpack/common";

import overlayStyle from "./deleteStyleOverlay.css?managed";
import textStyle from "./deleteStyleText.css?managed";
Expand Down Expand Up @@ -122,7 +122,7 @@ export default definePlugin({

makeEdit(newMessage: any, oldMessage: any): any {
return {
timestamp: moment?.call(newMessage.edited_timestamp),
timestamp: new Date(newMessage.edited_timestamp),
content: oldMessage.content
};
},
Expand Down

0 comments on commit f2934c8

Please sign in to comment.