davidgfnet / whatsapp-purple

WhatsApp protocol implementation for libpurple (pidgin)
855 stars 211 forks source link

Showing a name? #78

Open Kitton opened 10 years ago

Kitton commented 10 years ago

Is it possible to show a contact's name? I think we have this information in the packages arriving from the other side.

davidgfnet commented 10 years ago

I do not remember it right now but I'm pretty sure there is a contact name somewhere. I remember that contact subscription discovery has a field for a nickname, which is probably the nickname chosen by the contact. On groups chats it's definitely possible to show nicknames, as contacts may have a per-chat nickname. Maybe we could add an option to allow users to choose between locally stored usernames and the ones being advertised by the contact for a particular chat.

lfos commented 10 years ago

I personally think we should stick to the local aliases in group chats and show the nick name in the information window ("Get Info") instead.

strk commented 10 years ago

I've seen _# (with an underscore) often showing up as names (from bitlbee), even if I added # in the contact. Is this a bitlebee-purple issue rather than a whatsapp-purple ?

shirishag75 commented 9 years ago

I am not able to see names but only contact numbers. Have to use an external service like truecaller or ask the person whose number I'm seeing.

KottV commented 9 years ago

Miranda-ng plugin can pull nicknames. Maybe simple borrow their ideas? :) http://trac.miranda-ng.org/browser#trunk/protocols/WhatsApp/src/

enriquefynn commented 9 years ago

Only when you receive a message, There could be some sort of database, a simple key value file. I don't know much about libpurple and the interaction with this plugin. Should the plugin create it's own db (like ~/.whatsapp-purple)? Or if you receive a message, create a contact automatically with the nickname alias.