1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

notify on friendrequest and groupchat invite

This commit is contained in:
sudden6 2016-02-25 14:16:26 +01:00
parent 61f887b510
commit db4de96bcf

View File

@ -1282,6 +1282,7 @@ void Widget::onFriendRequestReceived(const QString& userId, const QString& messa
{ {
addFriendForm->addFriendRequest(userId, message); addFriendForm->addFriendRequest(userId, message);
friendRequestsUpdate(); friendRequestsUpdate();
newMessageAlert(window(), isActiveWindow(), true, true);
} }
void Widget::updateFriendActivity(Friend *frnd) void Widget::updateFriendActivity(Friend *frnd)
@ -1449,6 +1450,7 @@ void Widget::onGroupInviteReceived(int32_t friendId, uint8_t type, QByteArray in
{ {
++unreadGroupInvites; ++unreadGroupInvites;
groupInvitesUpdate(); groupInvitesUpdate();
newMessageAlert(window(), isActiveWindow(), true, true);
groupInviteForm->addGroupInvite(friendId, type, invite); groupInviteForm->addGroupInvite(friendId, type, invite);
} }
else else