mirror of
https://github.com/openmax-server/server.git
synced 2026-05-25 04:51:42 +03:00
MAX: добавление/удаление контактов, статусы
This commit is contained in:
@@ -74,6 +74,20 @@ class OnemeController(ControllerBase):
|
||||
packet = self.proto.pack_packet(
|
||||
cmd=0, seq=1, opcode=self.opcodes.NOTIF_PROFILE, payload=payload
|
||||
)
|
||||
elif eventType == "presence":
|
||||
userId = eventData.get("userId")
|
||||
presence = eventData.get("presence")
|
||||
event_time = eventData.get("time")
|
||||
|
||||
payload = {
|
||||
"userId": userId,
|
||||
"presence": presence,
|
||||
"time": event_time
|
||||
}
|
||||
|
||||
packet = self.proto.pack_packet(
|
||||
cmd=0, seq=1, opcode=self.opcodes.NOTIF_PRESENCE, payload=payload
|
||||
)
|
||||
|
||||
# Отправляем пакет
|
||||
writer.write(packet)
|
||||
|
||||
Reference in New Issue
Block a user