Commit 1f78da9
committed
fix: nil pointer dereference in session chat LastSeenMessages handling
- Fixed condition from '== nil' to '!= nil' to prevent nil dereference panic
- Changed to use evt.Message() instead of packet.Message when message is modified
- Added LastSeenMessages to builder when creating new packet for modified messages
- Removed unnecessary unsigned check to match Velocity's behavior1 parent 63c9ea6 commit 1f78da9
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
100 | 104 | | |
101 | | - | |
| 105 | + | |
102 | 106 | | |
103 | 107 | | |
104 | 108 | | |
| |||
0 commit comments