From 454d1b72cc050f27978837decd38ec76bfe571d0 Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Thu, 12 May 2022 03:44:57 -0400 Subject: [PATCH] Don't document that outbound portal avatars are supported Also comment-out its unused code --- ROADMAP.md | 2 +- matrix_appservice_kakaotalk/kt/client/client.py | 2 ++ node/src/client.js | 7 ++++--- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ROADMAP.md b/ROADMAP.md index b176d3e..5505e66 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -27,7 +27,7 @@ * [ ] Room metadata changes * [x] Name[1] * [x] Topic[1] - * [x] Avatar[1] + * [ ] Avatar * [ ] Per-room user nick * KakaoTalk → Matrix * [ ] Message content diff --git a/matrix_appservice_kakaotalk/kt/client/client.py b/matrix_appservice_kakaotalk/kt/client/client.py index 772fb3e..7360075 100644 --- a/matrix_appservice_kakaotalk/kt/client/client.py +++ b/matrix_appservice_kakaotalk/kt/client/client.py @@ -498,6 +498,7 @@ class Client: description=description, ) + """ TODO def set_channel_photo( self, channel_props: ChannelProps, @@ -508,6 +509,7 @@ class Client: channel_props=channel_props.serialize(), photo_url=photo_url, ) + """ def create_direct_chat(self, ktid: Long) -> Awaitable[Long]: return self._api_user_request_result( diff --git a/node/src/client.js b/node/src/client.js index 14d04f1..4a7fbac 100644 --- a/node/src/client.js +++ b/node/src/client.js @@ -1119,12 +1119,12 @@ export default class PeerClient { return await talkChannel.setNoticeMeta(req.description) } - /** + /* + * TODO * @param {Object} req * @param {string} req.mxid * @param {ChannelProps} req.channel_props * @param {string} req.photo_url - */ setChannelPhoto = async (req) => { const talkChannel = await this.#getUserChannel( req.mxid, @@ -1137,6 +1137,7 @@ export default class PeerClient { fullImageUrl: req.photo_url, }) } + */ /** * @param {Object} req @@ -1284,7 +1285,7 @@ export default class PeerClient { send_perm: this.sendPerm, set_channel_name: this.setChannelName, set_channel_description: this.setChannelDescription, - set_channel_photo: this.setChannelPhoto, + //set_channel_photo: this.setChannelPhoto, create_direct_chat: this.createDirectChat, leave_channel: this.leaveChannel, }[req.command] || this.handleUnknownCommand