Bug 116365 - wrong ID displayed in chat window
Summary: wrong ID displayed in chat window
Status: REOPENED
Alias: None
Product: kopete
Classification: Applications
Component: libkopete (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
: 117529 119613 122508 123816 125996 128683 129173 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-11-14 19:21 UTC by Dominik Karall
Modified: 2021-03-09 22:41 UTC (History)
11 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dominik Karall 2005-11-14 19:21:07 UTC
Version:            (using KDE KDE 3.5.0)
Installed from:    Gentoo Packages

hi,
I'm not using the global identity with kopete, but when I start a chat with someone, the wrong ID is displayed. The displayed ID is the one, which is selected in the global identity combobox.

For example:
If I start a chat with an icq account, it could be, that xxx@jabber.org is displayed as my nick (global identities *not* enabled!).

I'm not sure if this bug was in beta2 too, but I think in beta1 it wasn't.

btw, I'm using 3.5-rc1 now.
Comment 1 Haris Kouzinopoulos 2005-11-14 21:43:22 UTC
I can confrm that. In addition to this, when i change global identity without enabling it, i can't see the nicknames of the others in the main window
Comment 2 Dominik Karall 2005-12-23 19:58:28 UTC
just want to mention, that this bug is still present in kde 3.5. don't know if there will be a 3.x release before 4.0, but if so, I think this bug should be treated as "NEW".

thx, dominik
Comment 3 James Reeves 2006-02-11 01:08:02 UTC
Confirmed to be present in KDE 3.5.1 on Ubuntu, also. This rates as my number one most annoying KDE bug this year.
Comment 4 Will Stephenson 2006-02-22 18:03:07 UTC
I've investigated, it's annoying me too, but it's not easy to fix. Or, more accurately, Global Identity is the fix, so use it.  I don't know why it's optional.

The chat styles currently use the display names of the metacontacts involved.

The myself metacontact containing all your details is initialised as your accounts are loaded.  The displayname of a metacontact is set when the first contact is added to it. Hence, unless it is changed by your Global Identity settings, it stays that way and you see the wrong displayname in your chats.

The alternative fix is to use contact display names or IDs instead of metacontact display names in the chat view.  This would mean altering the 3.5 chat styles at least.  I'm not sure what would be involved in fixing this for the new Adium style chatview in 0.12.
Comment 5 Dominik Karall 2006-02-22 18:46:01 UTC
Global identity can't be the fix, as I think that many users have a "private" account and a "public" account. So I don't want that "virtual friends" get my private address, but I don't want others to get my public accountname too.
Comment 6 James Reeves 2006-02-23 00:41:19 UTC
Dominik has it right, I think. I have a work account, and a personal account. With my personal account, I can afford to take liberties with the screen name; with my work account, I keep it professional and use my full name. It's awfully unnerving to reply to a IM about a meeting or a server problem, and have my personal screen name appear on the chat window.

I've looked through the source-code, however, and I understand Will's point. It does look awfully difficult to change. Thus, I propose a compromise. If Global Identity is turned off, instead of defaulting to the first account it finds, why not use a pronoun like "You"?

Fred says, "Hello there."
You says, "Hello yourself."

There's still a problem with verb tense ("You says" rather than "You say"), but it might do as a stop-gap measure. And if anyone can think of a better default name to use, I'm all ears. Maybe "Yourself"? "Current User"?
Comment 7 Will Stephenson 2006-02-23 11:52:37 UTC
I understood this was a problem with the local presentation of your messages (what you see on the screen).  I just did a finger-in-the-air test with jabber/gtalk and MSN, with global identity on and off, and while we got a local message eg Billy is now known as Will Stephenson on change, the person I was talking to saw my contactid in his chat windows the whole time.

Are you talking about what others see?  Take care not to confuse what you see with what they see.  
Comment 8 James Reeves 2006-02-24 19:07:37 UTC
This is indeeed a problem to just do with the local presentation of messages. But it's a question of incorrect user feedback. The contact name you send, and the contact name that is displayed on screen are now two different things. Ideally, Kopete should display on screen exactly what it sends to the user. Anything less should be considered a bug.
Comment 9 Chani 2006-02-24 19:17:26 UTC
> ------- Additional Comments From kdebugs monkeyengines co uk  2006-02-24 19:07 -------
> This is indeeed a problem to just do with the local presentation of messages. But it's a question of incorrect user feedback. The contact name you send, and the contact name that is displayed on screen are now two different things. Ideally, Kopete should display on screen exactly what it sends to the user. Anything less should be considered a bug.


I agree - unless the style has something hardcoded (like 'you say:')
it should probably display the name the other person will see. there
should at least be the *option* to do so... I'm not sure if I'd always
want my full msn name written out in chat but in this guy's case it
seems important.
Comment 10 Matt Rogers 2006-02-26 17:19:35 UTC
*** Bug 122508 has been marked as a duplicate of this bug. ***
Comment 11 Olivier Goffart 2006-03-21 08:11:34 UTC
*** Bug 123816 has been marked as a duplicate of this bug. ***
Comment 12 Olivier Goffart 2006-03-31 19:20:13 UTC
*** Bug 117529 has been marked as a duplicate of this bug. ***
Comment 13 Olivier Goffart 2006-03-31 19:21:07 UTC
Same apply for the picture,  cf Bug 117529 
Comment 14 Olivier Goffart 2006-03-31 19:25:23 UTC
*** Bug 119613 has been marked as a duplicate of this bug. ***
Comment 15 Olivier Goffart 2006-06-07 22:23:35 UTC
*** Bug 125996 has been marked as a duplicate of this bug. ***
Comment 16 Thiago Macieira 2006-06-11 01:24:35 UTC
*** Bug 128683 has been marked as a duplicate of this bug. ***
Comment 17 Tanim Islam 2006-06-11 01:42:14 UTC
Yes, I am running Kopete 0.12, and I've perused through the source code. It does look very difficult to determine why this error is occurring. Perhaps if someone could detail the topology of this routine and hard-to-reproduce bug in some detail? Maybe, at a first level, which routines call which other routines, for one.
Comment 18 Olivier Goffart 2006-06-11 09:35:39 UTC
which routine ?

%sender% is replaced by the metacontact's display name.
the picture is the metacontact's picture.

In the case of the own contact, there is only one metacontact (the self metacontact)

so only one name and picture for all accounts.
Comment 19 Tanim Islam 2006-06-11 14:56:49 UTC
Well, i would believe that this is how it's supposed to behave. However I find 
that kopete 0.12 does not respect the %sender keyword for the client user 
(own self contact). Thus, I have even with %sender keyword in the style, 
different own contact names for different IM accounts; it doesn't display my 
metacontact name "Tanim Islam" but various different IM account names for say 
MSN messenger, AIM, Jabber, etc.

Obviously there is a flaw in how kopete 0.12 handles at least the own contact. 
There should therefore be a nice topology that someone can detail for how 
kopete 0.12 displays the self contact information. If I seem unclear, please 
show how i can explain better.

Tanim
> which routine ?
>
> %sender% is replaced by the metacontact's display name.
> the picture is the metacontact's picture.
>
> In the case of the own contact, there is only one metacontact (the self
> metacontact)
>
> so only one name and picture for all accounts.

Comment 20 Michaël Larouche 2006-06-11 14:58:31 UTC
That's how %sender% system works:

For each contact beside ourself, it use the metacontact display name and photo and fallback to the contact nickname and photo property if the metacontact is NULL.

For myself contact(ourself), I use the current myself contact(not metacontact) nickname and it's metacontact picture. Why I use myself contact nickname ? Because I can't rely on myself metacontact display name, because such things as showing your MSN nickname in a Yahoo when you don't want it.

In the code that's in kopete/chatwindow/chatmessagepart.cpp
Comment 21 Tanim Islam 2006-06-11 15:07:29 UTC
Ah OK thanks, this explains the situation transparently. It wasn't a bug, it's 
a design issue -- that the metacontact feature is disabled for the self 
contact.

Tanim
Comment 22 Olivier Goffart 2006-06-15 12:04:29 UTC
*** Bug 129173 has been marked as a duplicate of this bug. ***
Comment 23 Matteo Migliavacca 2006-06-15 22:35:29 UTC
I dont see the connection with the update picture problem in MSN. Can someone clarify the connection or reopen Bug 119613?
Comment 24 Daniel 2006-06-20 15:30:49 UTC
I don't see either... I think this is another bug. My identity is correct when chatting, just can not see my changed picture in the chat windows, that's all...
Comment 25 Taboom 2007-01-08 17:28:05 UTC
I can confirm that this bug still exists for Kopete 0.12.3 (KDE 3.5.5) - the version available via Ubuntu edgy repositories (4:3.5.5+kopete0.12.3-0ubuntu1). It happens for me all the time.

Having 3 MSN accounts and 1 ICQ account available and global identity disabled I have this problem and it even seems to be more strange than discussed earlier.

I have the exact same picture (shown as my own image in chat windows) in all MSN chat windows no matter the MSN account. Outbound (for other users) this is NOT a problem - they see the correct image.

It seems as the image I see in the chat window as my own image is the latest image I've chosen for any MSN account. Taking into account that the image is updated only after restarting Kopete.

To clarify let's make the simplest case:
Accounts 1 2. And images A and B.

I set the image A for account 1, B for account 2. The update works immediately when A and B chats - the correct images are displayed in the contact list and in the chat windows - for each other but not for themselves. An old image is instead shown as their own images for 1 and 2. That is:
- 1 sees B as 2:s image (correct)
- 1 sees an old image as it's own image (false)
- 2 sees A as 1:s image (correct)
- 2 sees an old image as it's own image (false)

Now I restart Kopete.

After the restart the images still work for each other ones (as always) but now the "own" image is B, the one I set last. So when 1 and 2 chats:
- 1 sees B as 2:s image (correct)
- 1 sees B as it's own image (false)
- 2 sees A as 1:s image (correct)
- 2 sees B as it's own image (correct)

Now if I change the picture for a third person, say to C the list will be (after a restart):
- 1 sees B as 2:s image (correct)
- 1 sees C as it's own image (false)
- 2 sees A as 1:s image (correct)
- 2 sees C as it's own image (false)

I hope this clarifies everything and shows how it is for me now and how I believe it should be - am I wrong in assuming this behavior?
Comment 26 Marc Collin 2007-03-04 22:44:43 UTC
i get this problem

i change my photo on msn... other people see it correctely but when i chat with people i see my old photo
Comment 27 Kristjan Ugrin 2007-05-12 18:50:10 UTC
I have kinda same problem with kopete  0.12.4.
Two msn accounts, no global identity, different picture ID for each account. But no matter if I chat with first or second account, last applied (to whatever account) image shows in conversation windows.
Comment 28 Will Stephenson 2007-11-24 19:58:15 UTC
https://bugzilla.novell.com/show_bug.cgi?id=269028 is the same bug
Comment 29 Wedge009 2008-08-14 08:08:03 UTC
I can confirm this bug is still present in Kopete 0.12.7 using KDE 3.5.9 from Kubuntu 8.04.1.

Specifically, I am referring to comments 15, 25 and 27.
Comment 30 Cyrill Helg 2008-08-25 08:55:17 UTC
Anyone has this bug in recent kde4 kopete too?
Comment 31 Kristjan Ugrin 2008-08-25 09:33:18 UTC
This was corrected about month ago in trunk. There remains a problem in msn plugin that borks pictures, because it doesn't update them when you change your own avatar. I don't know if it is linked directly to this.
Comment 32 Björn Ruberg 2009-11-28 00:29:13 UTC
I suggest closing this bug. There is no report for far over a year now.
Comment 33 Björn Ruberg 2009-11-30 00:30:37 UTC
As there is no further report of this bug I'm closing it. Please report if it needs to be reopened.
Comment 34 Gerald Pfeifer 2009-12-03 01:14:09 UTC
Still happening, though today I had "Other User, , Another User" in the
title bar of Kopete (note the empty name) and something like "(Unknown)"
on the tab, sorry forget the exact text.

Not sure how to reopen this bug?
Comment 35 Björn Ruberg 2009-12-03 01:24:59 UTC
Just reopened it. Thanks for reporting back.
Comment 36 Justin Zobel 2021-03-09 22:41:12 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.