Skip to content

starboard: support starring system messages, including those in #starboard#221

Open
katrinafyi wants to merge 2 commits intomainfrom
starboard-handle-message-types
Open

starboard: support starring system messages, including those in #starboard#221
katrinafyi wants to merge 2 commits intomainfrom
starboard-handle-message-types

Conversation

@katrinafyi
Copy link
Copy Markdown
Member

@katrinafyi katrinafyi commented Mar 13, 2025

this changes the lookup logic to attempt both kinds of lookups
(both received message and starboard message), allowing for
starboard messages to be mixed with original messages in the starboard
channel.

this also changes the referenced message handling to attempt to fetch
the referenced message if it has not been resolved. this gets us the
full pinned message for pins_add events.

also tweaks the display of referenced messages to handle kinds of
reference which are not a reply.

in delete, we also have to use db_session.delete(entry) instead of
entry.delete(). i do not know why - renamed method after update, maybe?

it looks something like this:
image

i have butchered the code in the process of testing. this should be cleane dup before merging.

it's a miracle this works, so please tell me if i have broken anything. or, feel free to ignore this pr and fix it properly.

psycopg2-binary and greenlet used c/c++ bindings and
failed to build on this python version
including system messages originating inside starboard.

this changes the lookup logic to attempt both kinds of lookups
(both received message and starboard message), allowing for
starboard messages to be mixed with original messages in the starboard
channel.

this also changes the referenced message handling to attempt to fetch
the referenced message if it has not been resolved. this gets us the
full pinned message for pins_add events.

also tweaks the display of referenced messages to handle kinds of
reference which are not a reply.

in delete, we also have to use `db_session.delete(entry)` instead of
`entry.delete()`. i do not know why - renamed method after update, maybe?
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.

1 participant