mirror of https://gitlab.com/litecord/litecord.git
fix typos
This commit is contained in:
parent
d1b10e7409
commit
0eb37554d3
|
|
@ -506,7 +506,7 @@ class GatewayWebsocket:
|
||||||
channel_ids: List[int] = []
|
channel_ids: List[int] = []
|
||||||
|
|
||||||
for guild_id in guild_ids:
|
for guild_id in guild_ids:
|
||||||
_, channels = await app.dispatcher.guild.sub_user(guild_id, session_id)
|
_, channels = await app.dispatcher.guild.sub_user(guild_id, user_id)
|
||||||
channel_ids.extend(channels)
|
channel_ids.extend(channels)
|
||||||
|
|
||||||
log.info("subscribing to {} guild channels", len(channel_ids))
|
log.info("subscribing to {} guild channels", len(channel_ids))
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from typing import List
|
from typing import List, Tuple
|
||||||
|
|
||||||
from quart import current_app as app
|
from quart import current_app as app
|
||||||
from logbook import Logger
|
from logbook import Logger
|
||||||
|
|
@ -64,9 +64,7 @@ class GuildDispatcher(DispatcherWithState[int, str, GatewayEvent, List[str]]):
|
||||||
guild_chan_ids = await app.storage.get_channel_ids(guild_id)
|
guild_chan_ids = await app.storage.get_channel_ids(guild_id)
|
||||||
channel_ids = []
|
channel_ids = []
|
||||||
for channel_id in guild_chan_ids:
|
for channel_id in guild_chan_ids:
|
||||||
perms = await get_permissions(
|
perms = await get_permissions(user_id, channel_id)
|
||||||
self.state.user_id, channel_id, storage=self.storage
|
|
||||||
)
|
|
||||||
|
|
||||||
if perms.bits.read_messages:
|
if perms.bits.read_messages:
|
||||||
channel_ids.append(channel_id)
|
channel_ids.append(channel_id)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue