You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
	
	
		
			
				
					
						
							|  |  |  | import { createSlice } from '@reduxjs/toolkit'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export type MentionsInputState = Array<{ | 
					
						
							|  |  |  |   id: string; | 
					
						
							|  |  |  |   authorPhoneNumber: string; | 
					
						
							|  |  |  |   authorProfileName: string; | 
					
						
							|  |  |  | }>; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export const initialMentionsState: MentionsInputState = []; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** | 
					
						
							|  |  |  |  * This slice is the one holding the default joinable rooms fetched once in a while from the default opengroup v2 server. | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | const mentionsInputSlice = createSlice({ | 
					
						
							|  |  |  |   name: 'mentionsInput', | 
					
						
							|  |  |  |   initialState: initialMentionsState, | 
					
						
							|  |  |  |   reducers: { | 
					
						
							|  |  |  |     updateMentionsMembers(state, action) { | 
					
						
							|  |  |  |       window?.log?.warn('updating mentions input members', action.payload); | 
					
						
							|  |  |  |       return action.payload as MentionsInputState; | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  | }); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | const { actions, reducer } = mentionsInputSlice; | 
					
						
							|  |  |  | export const { updateMentionsMembers } = actions; | 
					
						
							|  |  |  | export const defaultMentionsInputReducer = reducer; |