mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	fix: pinned msgs when switching chats
This commit is contained in:
		| @@ -68,7 +68,6 @@ define('forum/chats', [ | ||||
| 		messages.wrapImagesInLinks(changeContentEl); | ||||
| 		messages.scrollToBottomAfterImageLoad(changeContentEl); | ||||
| 		create.init(); | ||||
| 		pinnedMessages.init($('[component="chat/main-wrapper"]')); | ||||
|  | ||||
| 		hooks.fire('action:chat.loaded', $('.chats-full')); | ||||
| 	}; | ||||
| @@ -108,6 +107,7 @@ define('forum/chats', [ | ||||
| 		messageSearch.init(roomId, mainWrapper); | ||||
| 		Chats.addPublicRoomSortHandler(); | ||||
| 		Chats.addTooltipHandler(mainWrapper); | ||||
| 		pinnedMessages.init(mainWrapper); | ||||
| 	}; | ||||
|  | ||||
| 	Chats.addPublicRoomSortHandler = function () { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user