Channel-specific nicknames
@jonnylamb
Submitted by Jonny Lamb Assigned to Telepathy bugs list
Description
To really fix bug #33048 we need to be able to do two things:
- change your nickname in an XMPP MUC.
- join an XMPP with a specific nickname.
I've implemented this using a method and a property:
Chan.I.Group.SetOwnNickname(s): simply sets your own nickname in the channel if the protocol supports it. The nickname is changed when SelfHandleChanged is fired. This fixes #1.
Conn.I.RoomNickname.DRAFT.DefaultNickname: s, rw: a DBus property connection manager property (so it can be persistent). This fixes #2 by having a global nickname that is used when you join rooms. If it's the empty string then gabble will make up the nickname like it's been doing for years.
Neither of these will fix the case of you wanting different nicknames for different XMPP MUCs which you want set when you join them. tbh I think we should fix that when/if we need to.
Whaddya think?
Version: git master