Skip to content
This repository has been archived by the owner on Mar 5, 2023. It is now read-only.

Use human readable names for chats that aren't named (eg. converted direct message rooms) #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jakecoppinger
Copy link

Name room based on member, if only one member present

If only one member is found in a room, set the room name to Unnamed ($MEMBERNAME).

If more than one member is found the room name is left as null and the raw Matrix address is used (as previous behaviour).

Lazy loading is used so member list is not necessarily exhaustive. The only situation I can imagine this failing is when only one other user has been messaging in a group chat for a long time.

To guarantee all members are retrived a request to /members for a specified room would be required (not implemented).

First commit is content of my previous PR (#10), please merge that first.

Closes #6

This should fix the repo (I can now run `npx ng serve` without
error) and should also works on Apple Silicon (`node-sass` has issues)
If only one member is found in a room, set the room name to
`Unnamed ($MEMBERNAME)`.

If more than one member is found the room name is left as null and the
raw Matrix address is used (as previous behaviour).

Lazy loading is used so member list is not necessarily exhaustive.
The only situation I can imagine this failing is when only one other
user has been messaging in a group chat for a long time.

To guarantee all members are retrived a request to /members for a specified room would be required (not implemented).

Closes turt2live#6
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

direct message rooms should use human readable name instead of internal room ID
1 participant