✨ Supporting content_type flag in messages properly now
This commit is contained in:
parent
2fa1ec6f34
commit
911edd8114
@ -66,7 +66,7 @@ async function get_range(auth, server, channel_id, start_time, end_time, limit)
|
||||
msg['id'],
|
||||
msg['time'],
|
||||
msg['content'],
|
||||
msg['type'],
|
||||
msg['content_type'],
|
||||
msg['author_id'],
|
||||
msg['name'],
|
||||
msg['channel_id']
|
||||
@ -114,11 +114,12 @@ function push_message(message) {
|
||||
* @returns void
|
||||
*/
|
||||
exports.recent_messages = async function (auth, server, channel, start_time, end_time, limit) {
|
||||
$('#channel-name').text('#' + channel['id'])
|
||||
$('#channel-description').text(channel['description'])
|
||||
$('#messages-list').html('')
|
||||
|
||||
const messages = await get_range(auth, server, channel['id'], start_time, end_time, limit)
|
||||
|
||||
for(const message of messages) { push_message(message) }
|
||||
for(const message of messages) {
|
||||
console.log(message)
|
||||
push_message(message)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user