diff --git a/lib/philomena/channels.ex b/lib/philomena/channels.ex index 4e42e633..9bd8d9ff 100644 --- a/lib/philomena/channels.ex +++ b/lib/philomena/channels.ex @@ -189,7 +189,7 @@ defmodule Philomena.Channels do Subscription |> where([s], s.channel_id in ^channel_ids and s.user_id == ^user.id) |> Repo.all() - |> Map.new(&{&1.id, true}) + |> Map.new(&{&1.channel_id, true}) end def clear_notification(channel, user) do