Make clicking on notifications open the room they're coming from

Implements #28
This commit is contained in:
Tobias Fella
2020-12-02 23:56:42 +01:00
committed by Nicolas Fella
parent 5b39cd4ae8
commit e1775f94c6
5 changed files with 19 additions and 4 deletions

View File

@@ -61,7 +61,7 @@ NeoChatRoom::NeoChatRoom(Connection *connection, QString roomId, JoinState joinS
return;
}
NotificationsManager::instance().postNotification(id(), lastEvent->id(), displayName(), sender->displayname(this), eventToString(*lastEvent), avatar(128));
NotificationsManager::instance().postNotification(this, lastEvent->id(), displayName(), sender->displayname(this), eventToString(*lastEvent), avatar(128));
});
connect(this, &Room::aboutToAddHistoricalMessages,