add telephone to the tooltip in IM contacts list
Categories
(Chat Core :: XMPP, enhancement)
Tracking
(Not tracked)
People
(Reporter: matevz.jekovec, Assigned: clokep)
Details
Attachments
(1 file, 1 obsolete file)
|
11.89 KB,
patch
|
florian
:
review+
|
Details | Diff | Splinter Review |
| Assignee | ||
Comment 1•7 years ago
|
||
| Reporter | ||
Comment 2•7 years ago
|
||
| Assignee | ||
Updated•7 years ago
|
| Assignee | ||
Comment 3•7 years ago
|
||
This adds telephone numbers to the tooltip and adds some basic tests for parsing vCards. Unfortunately I don't seem to have any contacts that provide a telephone number.
Comment 4•7 years ago
|
||
| Assignee | ||
Comment 5•7 years ago
|
||
Not doing the parsing of the strings was an attempt to separate tests into better units, but you're right that starting with the raw strings is much clearer. This patch does that. I also remembered to run eslint this time. :)
The examples from XEP-0054 (https://xmpp.org/extensions/xep-0054.html) were slightly modified by adding xmlns='jabber:client'. Our XMPP parser doesn't like it if you don't include a namespace.
One weird thing about this is that it takes the last telephone number. I feel like it should be an array (or object) with additional metadata. (Note that this issue seems to also exist for email addresses, and perhaps other elements in the vCard.)
Updated•7 years ago
|
Pushed by clokep@gmail.com:
https://hg.mozilla.org/comm-central/rev/d3ed91f7a8e0
Add telephone number to the XMPP tooltip. r=florian
| Assignee | ||
Updated•7 years ago
|
Description
•