mirror of
https://github.com/solero/houdini.git
synced 2024-11-22 05:27:23 +00:00
Don't send empty string inside epf com message packet
Causes client bug!
This commit is contained in:
parent
349f40efd4
commit
d9d84508cd
@ -126,4 +126,8 @@ async def handle_get_com_messages(p):
|
||||
if unread_com_message:
|
||||
await p.server.cache.delete('com_messages')
|
||||
await p.update(com_message_read_date=datetime.datetime.now()).apply()
|
||||
await p.send_xt('epfgm', int(bool(unread_com_message)), await get_com_messages(p))
|
||||
com_messages = await get_com_messages(p)
|
||||
if com_messages:
|
||||
await p.send_xt('epfgm', int(bool(unread_com_message)), com_messages)
|
||||
else:
|
||||
await p.send_xt('epfgm', int(bool(unread_com_message)))
|
||||
|
Loading…
Reference in New Issue
Block a user