Skip to content

Commit b84d951

Browse files
committed
refactor(channel): simplify pushName assignment logic
1 parent 0df4504 commit b84d951

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/services/channel.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ export class ChannelStartupService {
811811
"Message"."key"->>'remoteJid' as "remoteJid",
812812
CASE
813813
WHEN "Message"."key"->>'remoteJid' LIKE '%@g.us' THEN COALESCE("Chat"."name", "Contact"."pushName")
814-
ELSE COALESCE("Contact"."pushName", "Message"."pushName")
814+
ELSE "Contact"."pushName"
815815
END as "pushName",
816816
"Contact"."profilePicUrl",
817817
COALESCE(

0 commit comments

Comments
 (0)