Skip to content

Commit

Permalink
Fixed LP's 10003 event. (also fixes #26)
Browse files Browse the repository at this point in the history
  • Loading branch information
Elorucov committed Oct 31, 2024
1 parent 63727fc commit 0388ebe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion L2/Core/LongPoll.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ private void ParseUpdates(JsonArray updates, List<Message> messages = null) {
long peerId = (long)u[3];
bool hasMessage = u.Count > 4; // удалённое у текущего юзера сообщение восстановилось
Log.Information($"EVENT {eventId}: msg={msgId}, flags={flags}, peer={peerId}, hasMessage={hasMessage}");
if (eventId == 3) MessageFlagRemove?.Invoke(this, msgId, flags, peerId);
if (eventId == 10003) MessageFlagRemove?.Invoke(this, msgId, flags, peerId);
else MessageFlagSet?.Invoke(this, msgId, flags, peerId);
if (hasMessage) {
Message msgFromHistory3 = messages?.Where(m => m.Id == msgId).FirstOrDefault();
Expand Down

0 comments on commit 0388ebe

Please sign in to comment.