Merge pull request #5297 from pangeachat/fix-double-join-message

fix: filter RoomMemberChangeType.other events from timeline
This commit is contained in:
ggurdin 2026-01-20 16:29:27 -05:00 committed by GitHub
commit dbbe654d1d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View file

@ -57,7 +57,9 @@ class CourseChatsController extends State<CourseChats>
@override
void initState() {
loadHierarchy(reload: true);
loadHierarchy(reload: true).then(
(_) => _joinDefaultChats(),
);
// Listen for changes to the activeSpace's hierarchy,
// and reload the hierarchy when they come through
@ -212,7 +214,6 @@ class CourseChatsController extends State<CourseChats>
try {
await _loadHierarchy(activeSpace: room, reload: reload);
if (mounted) await _joinDefaultChats();
if (mounted) {
final futures = [
loadRoomSummaries(

View file

@ -64,7 +64,8 @@ extension IsStateExtension on Event {
bool get isVisibleInPangeaGui {
if (!room.showActivityChatUI) {
return type != EventTypes.RoomMember ||
roomMemberChangeType != RoomMemberChangeType.avatar;
(roomMemberChangeType != RoomMemberChangeType.avatar &&
roomMemberChangeType != RoomMemberChangeType.other);
}
return type != EventTypes.RoomMember;