Skip to content

feat: Create Method ChannelWebhook.sendMessage()#141

Closed
Taureon wants to merge 32 commits intostoatchat:mainfrom
Taureon:channelwebhook-sendmessage
Closed

feat: Create Method ChannelWebhook.sendMessage()#141
Taureon wants to merge 32 commits intostoatchat:mainfrom
Taureon:channelwebhook-sendmessage

Conversation

@Taureon
Copy link

@Taureon Taureon commented Mar 14, 2026

There is this API endpoint which creates a message as a webhook in the backend.

This method directly calls the API endpoint, and it's essentially an edited copy-paste of Channel.sendMessage().

ChannelWebhook.editMessage() and ChannelWebhook.deleteMessage() don't exist because of the lacking endpoints.

Taureon and others added 30 commits March 14, 2026 09:53
Signed-off-by: Taureon <taureon@noreply.codeberg.org>
Signed-off-by: Taureon <taureon@noreply.codeberg.org>
Signed-off-by: Taureon <taureon@noreply.codeberg.org>
Signed-off-by: Taureon <taureon@noreply.codeberg.org>
Signed-off-by: Taureon <taureon@noreply.codeberg.org>
Signed-off-by: Taureon <taureon@noreply.codeberg.org>
Signed-off-by: Taureon <taureon@noreply.codeberg.org>
Signed-off-by: Taureon <taureon@noreply.codeberg.org>
Signed-off-by: Taureon <taureon@noreply.codeberg.org>
Signed-off-by: Taureon <taureon@noreply.codeberg.org>
Signed-off-by: Taureon <taureon@noreply.codeberg.org>
Signed-off-by: Taureon <taureon@noreply.codeberg.org>
The frontend only sends typing updates every 2.5-3s, so the 1s
timeout caused the typing indicator to flicker.

Signed-off-by: Aeledfyr <aeledfyr@gmail.com>
Signed-off-by: Taureon <taureon@noreply.codeberg.org>
Signed-off-by: Taureon <taureon@noreply.codeberg.org>
Signed-off-by: Taureon <taureon@noreply.codeberg.org>
Signed-off-by: Taureon <taureon@noreply.codeberg.org>
Signed-off-by: Taureon <taureon@noreply.codeberg.org>
Signed-off-by: Amy <amy+git@amogus.cloud>
Signed-off-by: Taureon <taureon@noreply.codeberg.org>
* feat: add nix shell

Signed-off-by: Amy <amy+git@amogus.cloud>

* fix: missing undefined check in policy_changes

Signed-off-by: Amy <amy+git@amogus.cloud>

---------

Signed-off-by: Amy <amy+git@amogus.cloud>
Signed-off-by: Taureon <taureon@noreply.codeberg.org>
Signed-off-by: Amy <amy+git@amogus.cloud>
Signed-off-by: Taureon <taureon@noreply.codeberg.org>
Signed-off-by: izzy <me@insrt.uk>
Signed-off-by: Taureon <taureon@noreply.codeberg.org>
…embers

Signed-off-by: Taureon <taureon@noreply.codeberg.org>
Signed-off-by: Chris Hultin <chris.hultin@gmail.com>
Signed-off-by: Taureon <taureon@noreply.codeberg.org>
…nal (stoatchat#127)

Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
Signed-off-by: Taureon <taureon@noreply.codeberg.org>
…ly, and fetch the missing users and channels. (stoatchat#131)

* chore: Update ulid to v3 to allow use in service workers

This commit was made without the use of generative AI.

Signed-off-by: Jacob Schlecht <dadadah@echoha.us>

* feat: Add async message parsing that calls fetch for service workers.

This commit was made without the use of generative AI.

Signed-off-by: Jacob Schlecht <dadadah@echoha.us>

* feat: add custom emoji text replacements to the markdown parser

This commit was made without the use of generative AI.

Signed-off-by: Jacob Schlecht <dadadah@echoha.us>

* feat: dedupe regex matches, wait for all requests at once

This commit was made without the use of generative AI.

Signed-off-by: Jacob Schlecht <dadadah@echoha.us>

* fix: run lint for Client.ts

This commit was made without the use of generative AI.

Signed-off-by: Jacob Schlecht <dadadah@echoha.us>

* refactor: Wait for all promises at once

This commit was made without the use of generative AI.

Signed-off-by: Jacob Schlecht <dadadah@echoha.us>

* Using spread operator

Signed-off-by: Christopher Hultin <chris.hultin@gmail.com>

* fix: run linter

This commit was made without the use of generative AI.

Signed-off-by: Jacob Schlecht <dadadah@echoha.us>

---------

Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
Signed-off-by: Christopher Hultin <chris.hultin@gmail.com>
Co-authored-by: Christopher Hultin <chris.hultin@gmail.com>
Signed-off-by: Taureon <taureon@noreply.codeberg.org>
correct event name

Signed-off-by: z-nexx <znexxpwnz0r@gmail.com>
Signed-off-by: Taureon <taureon@noreply.codeberg.org>
…stoatchat#135)

This commit was made without the use of generative AI.

Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
Signed-off-by: Taureon <taureon@noreply.codeberg.org>
This commit was made without the use of generative AI.

Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
Signed-off-by: Taureon <taureon@noreply.codeberg.org>
* fix: linter fix to make pr checks pass

This commit was made without the use of generative AI.

Signed-off-by: Jacob Schlecht <dadadah@echoha.us>

* fix: add missing eslint library

This commit was made without the use of generative AI.

Signed-off-by: Jacob Schlecht <dadadah@echoha.us>

---------

Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
Signed-off-by: Taureon <taureon@noreply.codeberg.org>
* fix: Server deletion client lockup

Signed-off-by: mihai <45673304+mihaicm93@users.noreply.github.com>

* fix: lint errors

Signed-off-by: mihai <45673304+mihaicm93@users.noreply.github.com>

* fix lint error

Signed-off-by: mihai <45673304+mihaicm93@users.noreply.github.com>

---------

Signed-off-by: mihai <45673304+mihaicm93@users.noreply.github.com>
Co-authored-by: Christopher Hultin <chris.hultin@gmail.com>
Signed-off-by: Taureon <taureon@noreply.codeberg.org>
@Taureon Taureon force-pushed the channelwebhook-sendmessage branch from c086e3e to 30f8b9e Compare March 14, 2026 09:25
Signed-off-by: Taureon <45183108+Taureon@users.noreply.github.com>
@Taureon Taureon marked this pull request as draft March 14, 2026 09:27
@Taureon
Copy link
Author

Taureon commented Mar 14, 2026

#142 i did the whole thing again this branch is fucked i am not good enough at git to fix this

@Taureon Taureon closed this Mar 14, 2026
@Taureon Taureon deleted the channelwebhook-sendmessage branch March 14, 2026 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants