Skip to content

Commit 31fb7ad

Browse files
committed
Fix newsNews fcm notification
1 parent a958b37 commit 31fb7ad

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/managers/fcmListenerManager.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,6 @@ async function newsNews(flm: FcmListenerManager, steamId: types.SteamId, title:
789789
for (const guildId of associatedGuilds) {
790790
const gInstance = gim.getGuildInstance(guildId) as GuildInstance;
791791

792-
// TODO! Update newsReceiver steamId in correct places
793792
if (steamId === gInstance.newsReceiver) {
794793
await discordMessages.sendFcmNewsNewsMessage(flm.dm, guildId, title, message, body);
795794
}

v2_todo.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,10 @@
137137
## Trackers
138138
- [ ] Class
139139
- [ ] Handler
140+
141+
142+
## Other todo:
143+
- gInstance.newsReceiver:
144+
- Decide when this should be set. Perhaps set as soon as the first credentials are added?
145+
- Perhaps in the future this could be set automatically based on which credentials are not expired etc
146+
- Make it possible to set this from a slash command?

0 commit comments

Comments
 (0)