Fix deletion of old messages exceeding threshold

このコミットが含まれているのは:
n9k 2022-06-22 08:31:06 +00:00
コミット 6046598ed8
1個のファイルの変更1行の追加1行の削除

ファイルの表示

@ -108,7 +108,7 @@ def add_chat_message(user, nonce, comment, ignore_empty=False):
MESSAGES_BY_ID[message_id] = message
while len(MESSAGES_BY_ID) > CONFIG['MAX_CHAT_MESSAGES']:
MESSAGES_BY_ID.pop(last=False)
MESSAGES_BY_ID.popitem(last=False)
# Notify event sockets that a chat message was added
notify_event_sockets({