Skip to content

Commit

Permalink
Display sub messages in the chatlog
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaserlang committed Feb 28, 2024
1 parent 0223604 commit fe79c31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tbot/web/handlers/api/twitch/chatlog.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ async def get(self, channel_id):
await has_mod(self, channel_id)

args = [channel_id]
sql = 'SELECT * FROM twitch_chatlog WHERE channel_id=%s AND type IN (1,100) '
sql = 'SELECT * FROM twitch_chatlog WHERE channel_id=%s AND type IN (1,2,100) '

user = self.get_argument('user', None)
if user:
Expand Down
8 changes: 1 addition & 7 deletions tbot/web/ui/twitch/logviewer/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,7 @@ class Logviewer extends React.Component {
renderTypeSymbol(l) {
switch(l.type) {
case 2:
return <span className="badge badge-danger">B</span>
break;
case 3:
return <span className="badge badge-warning">T</span>
break;
case 4:
return <span className="badge badge-info">P</span>
return <span className="badge badge-primary">S</span>
break;
case 100:
return <span className="badge badge-success">M</span>
Expand Down

0 comments on commit fe79c31

Please sign in to comment.