Don't document that outbound portal avatars are supported

Also comment-out its unused code
This commit is contained in:
Andrew Ferrazzutti 2022-05-12 03:44:57 -04:00
parent 79fe8748b1
commit 454d1b72cc
3 changed files with 7 additions and 4 deletions

View File

@ -27,7 +27,7 @@
* [ ] Room metadata changes
* [x] Name<sup>[1]</sup>
* [x] Topic<sup>[1]</sup>
* [x] Avatar<sup>[1]</sup>
* [ ] Avatar
* [ ] Per-room user nick
* KakaoTalk → Matrix
* [ ] Message content

View File

@ -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(

View File

@ -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