This repository has been archived on 2026-10-25. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Sable/src/app
7w1 bb9e024d5d Fix PMP profile handling and rendering for empty PMP display names (#495)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

<!-- Please include a summary of the change. Please also include
relevant motivation and context. List any dependencies that are required
for this change. -->

This PR changes that whitespace only, or empty display names of
per-message-profiles resulting in display-names in the event being unset
and the fallback-string not being added to the body.

It also unsets the `avatar_url` if the avatar is not set. And internally
made the displayname an optional field. Only the `id` is now an required
field for the beeper pmp.

It also changes the message rendering, by removing the "via"-part if the
name is unset.

#### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
No AI was used for my changes
2026-03-23 17:16:39 +00:00
..
2026-03-20 23:27:49 -05:00