Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Conversation

@SamSaffron
Copy link
Member

Previous to this fix we assumed the name field contained usernames
when in fact it was stored in the id field.

This fixes the context contruction and also adds some basic user
information to the context to assist responders in understanding
the cast of chars

Previous to this fix we assumed the name field contained usernames
when in fact it was stored in the id field.

This fixes the context contruction and also adds some basic user
information to the context to assist responders in understanding
the cast of chars
type: :user,
content: mapped_message,
name: m.user.username,
id: m.user.username,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe the push method still takes in both name and id parameters in the method signature. Do we need to keep them both?

Copy link
Contributor

@nattsw nattsw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving first, though I think def topic_array is getting quite messy and doing many things

@SamSaffron
Copy link
Member Author

Agree, will improve the story around this code next, but I want to get the urgent fix in first.

@SamSaffron SamSaffron merged commit 67e3a61 into main Apr 11, 2025
6 checks passed
@SamSaffron SamSaffron deleted the improve-context branch April 11, 2025 22:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants