Ticket #1442: licq-4756_notice_use_alias.patch
| File licq-4756_notice_use_alias.patch, 1.3 kB (added by flynd, 2 years ago) |
|---|
-
licq/plugins/qt-gui/src/usereventdlg.cpp
1795 1795 1796 1796 if (mainwin->m_bMsgChatView) 1797 1797 { 1798 ICQUser *u = gUserManager.FetchUser(szId, m_nPPID, LOCK_R); 1799 QString userName; 1800 if (u) 1801 userName = QString::fromUtf8(u->GetAlias()); 1802 else 1803 userName = szId; 1804 gUserManager.DropUser(u); 1805 1798 1806 QString strMsg = QString("%1 has joined the conversation.") 1799 .arg( szId);1807 .arg(userName); 1800 1808 mleHistory->addNotice(QDateTime::currentDateTime(), strMsg); 1801 1809 } 1802 1810 … … 1822 1830 1823 1831 if (mainwin->m_bMsgChatView) 1824 1832 { 1833 ICQUser *u = gUserManager.FetchUser(szId, m_nPPID, LOCK_R); 1834 QString userName; 1835 if (u) 1836 userName = QString::fromUtf8(u->GetAlias()); 1837 else 1838 userName = szId; 1839 1825 1840 QString strMsg = QString("%1 has left the conversation.") 1826 .arg( szId);1841 .arg(userName); 1827 1842 mleHistory->addNotice(QDateTime::currentDateTime(), strMsg); 1828 1843 1829 1844 // Remove the typing notification if active 1830 ICQUser *u = gUserManager.FetchUser(szId, m_nPPID, LOCK_W);1831 1845 if (u && u->GetTyping() == ICQ_TYPING_ACTIVE) 1832 1846 { 1833 1847 u->SetTyping(ICQ_TYPING_INACTIVEx0);
