feat: Display total number and room unread messages in room title #32304
+27
−5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
TLTR
![20240424-develop-branch-unread_messages_obscures_rooms_name](https://private-user-images.githubusercontent.com/10117686/326265251-30fe23b5-13f4-4239-af9f-30ee396d5d2f.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyOTIzMTEsIm5iZiI6MTczOTI5MjAxMSwicGF0aCI6Ii8xMDExNzY4Ni8zMjYyNjUyNTEtMzBmZTIzYjUtMTNmNC00MjM5LWFmOWYtMzBlZTM5NmQ1ZDJmLlBORz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDE2NDAxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTkyMDZjNDgzN2ZjNzc0ZTlmMWFhYjk2YTcwZDExODBkYzQ0OGY0MzRhYzBiNzFjYThiOWY3MzQ3MDRmNDAyOWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.RgrGSN8sfj-hy0Gw47dpgunlRRCJd5ptnVcGqcWoi_E)
![324708497-2c42eddc-9620-4d17-bb1d-d6f21a1a672b](https://private-user-images.githubusercontent.com/10117686/326265240-9f794ff4-2b72-4cd8-836b-179379194eb0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyOTIzMTEsIm5iZiI6MTczOTI5MjAxMSwicGF0aCI6Ii8xMDExNzY4Ni8zMjYyNjUyNDAtOWY3OTRmZjQtMmI3Mi00Y2Q4LTgzNmItMTc5Mzc5MTk0ZWIwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDE2NDAxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJkMzFkY2ExYTE2NmZhZDNhM2U2N2Y1MDg0YjU4NjhlZmNjOTA5M2E4YjNhN2UyMzY3NTY3ZDk2M2Q0NWFhOWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.n2Z7MUi6p90FJ2gOgVjuLdh2dVRdvwddSJwslHO59t4)
PR replaces room title from:
to:
PR changes room title to:
Format:
Examples:
[10] (5) Mark Watney - workspace name
[10] general - workspace name
- AFAIK channels do not have number of unread messages, so room unread not showgeneral - workspace name
- no unread messagesNote: 32 is total number of unread, 17 "Johny Smith" room unread, 15 "Mark Watney" room unread
Issue(s)
RocketChat/feature-requests#885
Steps to test or reproduce
Further comments