Closed
Bug 1347535
Opened 8 years ago
Closed 6 years ago
Display nicknames of Participants instead of Ids
Categories
(Chat Core :: Matrix, enhancement)
Chat Core
Matrix
Tracking
(Not tracked)
RESOLVED
FIXED
Instantbird 72
People
(Reporter: matrixisreal, Assigned: clokep)
References
Details
Attachments
(1 file)
|
3.19 KB,
patch
|
pmorris
:
review+
|
Details | Diff | Splinter Review |
only Id's are diplayed now on both Participants list and on the Conversation.
Find a way to identify users by nicks(they are not unique).
| Assignee | ||
Comment 1•8 years ago
|
||
Can you give examples of what each of these things are? (Or link to documentation explaining the differences.)
| Reporter | ||
Comment 2•8 years ago
|
||
We get Participants info from room-member object. :
http://matrix-org.github.io/matrix-js-sdk/0.7.5/module-models_room-member.html
which has fields userId and name.
userId : The user ID of this member. (Note that this is unique for an account)
Ex: @mozilla_matrixisreal:matrix.org
name: The human-readable name for this room member. (This is similar to IRC nicks)
Ex: matrixisreal
| Reporter | ||
Comment 3•8 years ago
|
||
I have run across some problems while trying to solve this.
Firstly, we are most likely to use Roommember.name in here :
https://dxr.mozilla.org/comm-central/source/chat/protocols/matrix/matrix.js#19-20
which is what riot does.
But Some issues:
1. To differentiate participants from IRC, matrix stores names as nick (IRC) , so we should take care to chop off (IRC) if the participant is from IRC.
[Optional] :
2. We might want to prioritize participants according to some criteria and sort according to it in the list instead of just alphabetical sort?
- This is what Riot does, not sure what its criteria is.
- This is very much important in case of channels with a lot of participants.
- I don't know if prpls give a chance to do this, but I think its important.
Need some ideas on this.
Flags: needinfo?(fred.wang)
Flags: needinfo?(clokep)
| Assignee | ||
Comment 4•8 years ago
|
||
(In reply to Pavan Karthik [:matrixisreal] from comment #3)
> I have run across some problems while trying to solve this.
>
> But Some issues:
> 1. To differentiate participants from IRC, matrix stores names as nick (IRC)
> , so we should take care to chop off (IRC) if the participant is from IRC.
You mean it stores the nick as "<actual nickname> (IRC)"? What does Riot do here? I think it just displays them, let's start with the simple behavior of just using the exact value there.
> [Optional] :
> 2. We might want to prioritize participants according to some criteria and
> sort according to it in the list instead of just alphabetical sort?
> - This is what Riot does, not sure what its criteria is.
> - This is very much important in case of channels with a lot of
> participants.
> - I don't know if prpls give a chance to do this, but I think its
> important.
This is unrelated to prpls and is a UI decision. Other protocols (e.g. IRC) have the same issue. See bug 953656 where we decided not to do this.
Flags: needinfo?(clokep)
| Reporter | ||
Comment 5•8 years ago
|
||
>
> You mean it stores the nick as "<actual nickname> (IRC)"? What does Riot do
> here? I think it just displays them, let's start with the simple behavior of
> just using the exact value there.
>
the only difference is during TAB completion, i.e nick (IRC) 's Tab completion is just "nick".
>
> This is unrelated to prpls and is a UI decision. Other protocols (e.g. IRC)
> have the same issue. See bug 953656 where we decided not to do this.
Cool. :)
| Assignee | ||
Comment 6•8 years ago
|
||
(In reply to Pavan Karthik [:matrixisreal] from comment #5)
> >
> > You mean it stores the nick as "<actual nickname> (IRC)"? What does Riot do
> > here? I think it just displays them, let's start with the simple behavior of
> > just using the exact value there.
> >
>
> the only difference is during TAB completion, i.e nick (IRC) 's Tab
> completion is just "nick".
Interesting, I'm not sure that tab completion is customization at all by prpls in Instantbird. My main concern with stripping the " (IRC)" is that this might exist for other bridges too and then it becomes whack-a-mole. So let's leave it for now.
Comment 7•8 years ago
|
||
Clearing the needinfo. What I noticed was summarized in comment 2. I initially tried the human-readable "name" but because it's not a unique id, I switched to "userId". I don't remember the details.
Flags: needinfo?(fred.wang)
| Assignee | ||
Comment 8•6 years ago
|
||
This builds on the patch in bug 1377952 to support names (and updating of names) for Matrix.
| Assignee | ||
Comment 9•6 years ago
|
||
Comment on attachment 9104258 [details] [diff] [review]
Patch v1
Paul had expressed an interest in taking a look at the Matrix code.
Attachment #9104258 -
Flags: review?(paul)
Comment 10•6 years ago
|
||
Comment on attachment 9104258 [details] [diff] [review]
Patch v1
Review of attachment 9104258 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good. In the participants list I see some entries that are nicknames rather than ids.
Attachment #9104258 -
Flags: review?(paul) → review+
| Assignee | ||
Updated•6 years ago
|
Attachment #9104258 -
Flags: review?(florian)
Comment 11•6 years ago
|
||
Pushed by clokep@gmail.com:
https://hg.mozilla.org/comm-central/rev/ad8a9f5244f8
Display names of Matrix participants instead of IDs. r=pmorris
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
| Assignee | ||
Updated•6 years ago
|
Target Milestone: --- → Instantbird 72
You need to log in
before you can comment on or make changes to this bug.
Description
•