Don't retrieve all offline messages only to count them.

Description

The implementation in Openfire of XEP-0013 retrieves all messages from the database, only to return a count of unread messages. That is not very effective. Instead, use a database query that sums rows (which is already available).

Environment

None
Fixed

Assignee

Guus der Kinderen

Reporter

Guus der Kinderen

Labels

None

Expected Effort

None

Ignite Forum URL

None

Components

Fix versions

Priority

Minor
Configure