diff --git a/go.mod b/go.mod index bdd8e63..2c237b9 100644 --- a/go.mod +++ b/go.mod @@ -13,7 +13,7 @@ require ( github.com/BurntSushi/toml v1.6.0 github.com/alecthomas/chroma/v2 v2.27.0 github.com/andybalholm/brotli v1.2.2 - github.com/ayn2op/arikawa/v3 v3.0.0-20260818060521-45d84650adce + github.com/ayn2op/arikawa/v3 v3.0.0-20260818065153-b362b4f1c64f github.com/ayn2op/ningen/v3 v3.0.1-0.20260818060652-dd6af4f3af5e github.com/ayn2op/tview v0.0.0-20260812042550-0532d50b709f github.com/bogdanfinn/fhttp v0.6.8 diff --git a/go.sum b/go.sum index 09e5635..c0e3ab4 100644 --- a/go.sum +++ b/go.sum @@ -10,8 +10,8 @@ github.com/alecthomas/repr v0.5.2 h1:SU73FTI9D1P5UNtvseffFSGmdNci/O6RsqzeXJtP0Qs github.com/alecthomas/repr v0.5.2/go.mod h1:Fr0507jx4eOXV7AlPV6AVZLYrLIuIeSOWtW57eE/O/4= github.com/andybalholm/brotli v1.2.2 h1:HzTuoo2ErYQqf5qvcJInB8uvqSVxRttzkFexPWtnceM= github.com/andybalholm/brotli v1.2.2/go.mod h1:rzTDkvFWvIrjDXZHkuS16NPggd91W3kUSvPlQ1pLaKY= -github.com/ayn2op/arikawa/v3 v3.0.0-20260818060521-45d84650adce h1:nSJzGucENNIrJH2fT5Fzw9EINwbjh6nQ9u/MpyYy240= -github.com/ayn2op/arikawa/v3 v3.0.0-20260818060521-45d84650adce/go.mod h1:O0QAm4VBLKBF01sofDEsAHGfD8+Tk8iWNYWksojTt6A= +github.com/ayn2op/arikawa/v3 v3.0.0-20260818065153-b362b4f1c64f h1:BZOR5rhBgQq7mNqdlcn2ubBk723KK85y8FSNECQAtO8= +github.com/ayn2op/arikawa/v3 v3.0.0-20260818065153-b362b4f1c64f/go.mod h1:O0QAm4VBLKBF01sofDEsAHGfD8+Tk8iWNYWksojTt6A= github.com/ayn2op/ningen/v3 v3.0.1-0.20260818060652-dd6af4f3af5e h1:Ulb1o3SluOJOp7iUztOX+ZUlMprCLMSe1dS4D5H+VkM= github.com/ayn2op/ningen/v3 v3.0.1-0.20260818060652-dd6af4f3af5e/go.mod h1:pTZpPeql1+s/RPziaJKw1aXBtzjz3/CeshRuWkXyv3k= github.com/ayn2op/tview v0.0.0-20260812042550-0532d50b709f h1:RidxK97+mKbM25L2iIdM6i6nfdZBSd1chNCu8e0PbxE= diff --git a/internal/ui/chat/model.go b/internal/ui/chat/model.go index 0f50840..9802e4b 100644 --- a/internal/ui/chat/model.go +++ b/internal/ui/chat/model.go @@ -80,7 +80,7 @@ func NewModel(cfg *config.Config, token string) *Model { id := gateway.NewIdentifier(gateway.IdentifyCommand{ Token: token, Properties: http.IdentifyProperties(), - Capabilities: gateway.LazyUserNotes | gateway.VersionedReadStates | gateway.VersionedUserGuildSetttings | gateway.DedupeUserObjects | gateway.PrioritizedReadyPayload | gateway.MultipleGuildExperimentPopulations | gateway.NonChannelReadStates | gateway.AuthTokenRefresh, + Capabilities: gateway.LazyUserNotes | gateway.VersionedReadStates | gateway.VersionedUserGuildSetttings | gateway.DedupeUserObjects | gateway.PrioritizedReadyPayload | gateway.MultipleGuildExperimentPopulations | gateway.NonChannelReadStates | gateway.AuthTokenRefresh | gateway.DebounceMessageReactions, }) session := session.NewWithGateway(clientgateway.New(id), handler.New()) @@ -291,6 +291,8 @@ func (m *Model) Update(msg tview.Msg) tview.Cmd { m.onMessageDelete(eventMsg) case *gateway.MessageReactionAddEvent: m.onMessageReaction(eventMsg.ChannelID, eventMsg.MessageID) + case *gateway.MessageReactionAddManyEvent: + m.onMessageReaction(eventMsg.ChannelID, eventMsg.MessageID) case *gateway.MessageReactionRemoveEvent: m.onMessageReaction(eventMsg.ChannelID, eventMsg.MessageID) case *gateway.MessageReactionRemoveAllEvent: