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.wrapImagesInLinks(changeContentEl); | ||||||
| 		messages.scrollToBottomAfterImageLoad(changeContentEl); | 		messages.scrollToBottomAfterImageLoad(changeContentEl); | ||||||
| 		create.init(); | 		create.init(); | ||||||
| 		pinnedMessages.init($('[component="chat/main-wrapper"]')); |  | ||||||
|  |  | ||||||
| 		hooks.fire('action:chat.loaded', $('.chats-full')); | 		hooks.fire('action:chat.loaded', $('.chats-full')); | ||||||
| 	}; | 	}; | ||||||
| @@ -108,6 +107,7 @@ define('forum/chats', [ | |||||||
| 		messageSearch.init(roomId, mainWrapper); | 		messageSearch.init(roomId, mainWrapper); | ||||||
| 		Chats.addPublicRoomSortHandler(); | 		Chats.addPublicRoomSortHandler(); | ||||||
| 		Chats.addTooltipHandler(mainWrapper); | 		Chats.addTooltipHandler(mainWrapper); | ||||||
|  | 		pinnedMessages.init(mainWrapper); | ||||||
| 	}; | 	}; | ||||||
|  |  | ||||||
| 	Chats.addPublicRoomSortHandler = function () { | 	Chats.addPublicRoomSortHandler = function () { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user