Skip to content

Commit

Permalink
Fix: the icon not displayed in fcm notification
Browse files Browse the repository at this point in the history
  • Loading branch information
kmc7468 committed Mar 22, 2024
1 parent 7060fd5 commit f38fe5b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/modules/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const sessionMiddleware = require("../middlewares/session");
const logger = require("./logger");
const { getLoginInfo } = require("./auths/login");
const { roomModel, userModel, chatModel } = require("./stores/mongo");
const { getS3Url } = require("./stores/aws");
const { getTokensOfUsers, sendMessageByTokens } = require("./fcm");

const { corsWhiteList } = require("../../loadenv");
Expand Down Expand Up @@ -195,7 +194,7 @@ const emitChatEvent = async (io, chat) => {
type,
name,
getMessageBody(type, nickname, content),
getS3Url(`/profile-img/${profileImageUrl}`),
profileImageUrl,
`/myroom/${roomId}`
);

Expand Down

0 comments on commit f38fe5b

Please sign in to comment.