|
|
|
@ -315,10 +315,14 @@ func (c *Client) updateMessageSendFailed(update *client.UpdateMessageSendFailed)
|
|
|
|
|
|
|
|
|
|
// chat title changed
|
|
|
|
|
func (c *Client) updateChatTitle(update *client.UpdateChatTitle) {
|
|
|
|
|
chat, user, _ := c.GetContactByID(update.ChatId, nil)
|
|
|
|
|
if c.Session.MUC && c.IsGroup(chat) {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
gateway.SetNickname(c.jid, strconv.FormatInt(update.ChatId, 10), update.Title, c.xmpp)
|
|
|
|
|
|
|
|
|
|
// set also the status (for group chats only)
|
|
|
|
|
chat, user, _ := c.GetContactByID(update.ChatId, nil)
|
|
|
|
|
if user == nil {
|
|
|
|
|
c.ProcessStatusUpdate(update.ChatId, update.Title, "chat", gateway.SPImmed(true))
|
|
|
|
|
}
|
|
|
|
|