stop blank messages from being sent #5

Closed
carsand101 wants to merge 3 commits from main into main
1 changed files with 755 additions and 752 deletions
Showing only changes of commit c67e27efa2 - Show all commits

3
main
View File

@ -223,10 +223,13 @@ def chatsend(roomid):
}, 403
conn = get_db_connection()
if not content.isspace():
conn.execute("INSERT INTO chatmessages (content, chatroom_id, creator, created) VALUES (?, ?, ?, ?)",
(content, roomid, userCookie["id"], str(time.time())))
conn.commit()
conn.close()
else:
# do something
global burgerMessageCache
global burgerMessageUpdate