Skip to content

Commit

Permalink
Fallback to group picture
Browse files Browse the repository at this point in the history
  • Loading branch information
corrideat committed Jan 15, 2025
1 parent 292c102 commit 512da5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/controller/serviceworkers/sw-primary.js
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,8 @@ sbp('okTurtles.events/on', NEW_CHATROOM_UNREAD_POSITION, ({ chatRoomID, messageH

sbp('okTurtles.events/on', NOTIFICATION_EMITTED, (notification) => {
const rootGetters = sbp('state/vuex/getters')
const icon = notification.avatarUserID
? rootGetters.ourContactProfilesById[notification.avatarUserID]?.picture
const icon = notification.avatarUserID && rootGetters.ourContactProfilesById[notification.avatarUserID]?.picture
? rootGetters.ourContactProfilesById[notification.avatarUserID].picture
: notification.groupID
? rootGetters.groupSettingsForGroup(notification.groupID).groupPicture
: undefined
Expand Down

0 comments on commit 512da5f

Please sign in to comment.