mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 08:38:28 +00:00
fix: [chats] message css + reply ID
This commit is contained in:
parent
c19b1f34e3
commit
daf9f6fb5d
2 changed files with 2 additions and 2 deletions
|
@ -67,7 +67,7 @@ class TelegramFeeder(DefaultFeeder):
|
||||||
meta = self.json_data['meta']
|
meta = self.json_data['meta']
|
||||||
mess_id = self.json_data['meta']['id']
|
mess_id = self.json_data['meta']['id']
|
||||||
if meta.get('reply_to'):
|
if meta.get('reply_to'):
|
||||||
reply_to_id = meta['reply_to']['id']
|
reply_to_id = int(meta['reply_to'])
|
||||||
else:
|
else:
|
||||||
reply_to_id = None
|
reply_to_id = None
|
||||||
|
|
||||||
|
|
|
@ -118,7 +118,7 @@
|
||||||
<h2><span class="badge badge-secondary mb-2">{{ date }}</span></h2>
|
<h2><span class="badge badge-secondary mb-2">{{ date }}</span></h2>
|
||||||
{% for mess in messages[date] %}
|
{% for mess in messages[date] %}
|
||||||
|
|
||||||
<div class="chat-message-left pb-0">
|
<div class="chat-message-left pb-1">
|
||||||
<div>
|
<div>
|
||||||
<img src="{{ url_for('static', filename='image/ail-icon.png') }}" class="rounded-circle mr-1" alt="{{ mess['user-account']['id'] }}" width="40" height="40">
|
<img src="{{ url_for('static', filename='image/ail-icon.png') }}" class="rounded-circle mr-1" alt="{{ mess['user-account']['id'] }}" width="40" height="40">
|
||||||
<div class="text-muted small text-nowrap mt-2">{{ mess['hour'] }}</div>
|
<div class="text-muted small text-nowrap mt-2">{{ mess['hour'] }}</div>
|
||||||
|
|
Loading…
Reference in a new issue