         m = messages = @redux.getStore(@name).get('messages')
         for x in changes
             if x.insert
-                console.log('Received', x.insert)
+                # Assumes all fields to be provided in x.insert
+                # console.log('Received', x.insert)
                 # OPTIMIZATION: make into custom conversion to immutable
-                if not x.insert.editing
-                     x.insert.editing = {}
                 message = immutable.fromJS(x.insert)
                 message = message.set('history', immutable.Stack(immutable.fromJS(x.insert.history)))
+                message = message.set('editing', immutable.Map(x.insert.editing))
                 messages = messages.set("#{x.insert.date - 0}", message)
             else if x.remove
                 messages = messages.delete(x.remove.date - 0)

        author_id = @redux.getStore('account').get_account_id()
        # OPTIMIZATION: send less data over the network?
        time_stamp = salvus_client.server_time()
        #console.log("Current history", message.get(    'history').toJS())
        #console.log("New history", [{author_id: author_id, content:mesg, date:time_stamp}].concat(message.get('history').toJS()))
        #console.log("Get date:", message.get('date'), typeof message.get('date'))

        @syncdb.update
            set :

                alert_message(type:'error', message:"json in #{@filename} is broken")
            else
                v = {}
                # console.log("DATA ON LOAD:", syncdb.select())
                for x in syncdb.select()
                    if x.history
                        x.history = immutable.Stack(immutable.fromJS(x.history))
