Skip to content

Fix issue with pinging multiple subscribers#4

Open
OliveiraHermogenes wants to merge 1 commit intoMxMarx:masterfrom
OliveiraHermogenes:fix-multi-ping
Open

Fix issue with pinging multiple subscribers#4
OliveiraHermogenes wants to merge 1 commit intoMxMarx:masterfrom
OliveiraHermogenes:fix-multi-ping

Conversation

@OliveiraHermogenes
Copy link
Copy Markdown

In load_all, the subscribed_users dictionary should map subscribing_event to user_id, not the other way around.

reminders[row["event_id"]].subscribed_users[row["user_id"]] = row["subscribing_event"]

This was causing errors or subscribing_event to show instead of the proper ping when additional users subscribed to a reminder via a 👍 reaction.

image

This mostly didn't affect reminders with a single subscriber because we have the correct order in line 178.

subscribed_users={row["subscribing_event"]: row["user_id"]},

In `load_all`, the `subscribed_users` dictionary should map
`subscribing_event` to `user_id`, not the other way around.

This was causing errors or `subscribing_event` to show instead of the
proper ping when additional user subscribed to a reminder via a thumbs
up reaction.

It didn't seem to affect reminders with a single subscriber because we
have the correct order in line 178.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant