From 228468635fdfe3025a889ccc4c2e12b25af4ba85 Mon Sep 17 00:00:00 2001 From: Luna Date: Sun, 17 Feb 2019 00:03:37 -0300 Subject: [PATCH] channels: pass uid to update_handler - system_messages: fix handle gdm name edit giving wrong msg type --- litecord/blueprints/channels.py | 2 +- litecord/system_messages.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/litecord/blueprints/channels.py b/litecord/blueprints/channels.py index cff6823..76324dd 100644 --- a/litecord/blueprints/channels.py +++ b/litecord/blueprints/channels.py @@ -462,7 +462,7 @@ async def update_channel(channel_id): if is_guild: await _update_channel_common(channel_id, guild_id, j) - await update_handler(channel_id, j) + await update_handler(channel_id, j, user_id) chan = await app.storage.get_channel(channel_id) diff --git a/litecord/system_messages.py b/litecord/system_messages.py index 0c1ebfb..0f13b8e 100644 --- a/litecord/system_messages.py +++ b/litecord/system_messages.py @@ -106,7 +106,7 @@ async def _handle_gdm_name_edit(app, channel_id, author_id): """, new_id, channel_id, author_id, gdm_name, - MessageType.RECIPIENT_ADD.value + MessageType.CHANNEL_NAME_CHANGE.value ) return new_id