~cytrogen/masto-fe

ref: f3a2e15f8e0274b5fdf28e3ce062084dc142cb2e masto-fe/app/javascript/mastodon/reducers/media_attachments.js -rw-r--r-- 375 bytes
f3a2e15f — Eugen Rochko Fix mute button and volume slider feeling disconnected in web UI (#26827) 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { Map as ImmutableMap } from 'immutable';

import { STORE_HYDRATE } from '../actions/store';

const initialState = ImmutableMap({
  accept_content_types: [],
});

export default function meta(state = initialState, action) {
  switch(action.type) {
  case STORE_HYDRATE:
    return state.merge(action.state.get('media_attachments'));
  default:
    return state;
  }
}