Equicord/src/equicordplugins/dragify
Gir0fa 972ae1184d
fix(dragify): pass message.author instead of author to onUserDragStart (#1119)
* fix(dragify): pass message.author instead of author to onUserDragStart

The patch passed arguments[0].author which is a nickname display object
with no .id. The full user object lives at arguments[0].message.author.

Also flipped onUserDragStart priority so explicit user?.id wins over
DOM inspection, since the caller's passed user is authoritative.

* Apply suggestions from code review

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

---------

Co-authored-by: thororen <78185467+thororen1234@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2026-05-27 18:06:04 -04:00
..
dragState.ts refactor: overhaul dragify internals (#961) 2026-04-09 17:00:45 -04:00
ghost.tsx refactor: overhaul dragify internals (#961) 2026-04-09 17:00:45 -04:00
index.tsx fix(dragify): pass message.author instead of author to onUserDragStart (#1119) 2026-05-27 18:06:04 -04:00
invite.ts refactor: overhaul dragify internals (#961) 2026-04-09 17:00:45 -04:00
style.css
targets.ts refactor: overhaul dragify internals (#961) 2026-04-09 17:00:45 -04:00
utils.ts refactor: overhaul dragify internals (#961) 2026-04-09 17:00:45 -04:00