Skip to content

Instantly share code, notes, and snippets.

@oliversisson
Created April 27, 2016 16:47
Show Gist options
  • Select an option

  • Save oliversisson/d4a912eb12351f95bf1d7d4eefbe0639 to your computer and use it in GitHub Desktop.

Select an option

Save oliversisson/d4a912eb12351f95bf1d7d4eefbe0639 to your computer and use it in GitHub Desktop.

Revisions

  1. Oliver created this gist Apr 27, 2016.
    8 changes: 8 additions & 0 deletions GiftedMessengerContainer.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    setMessageStatus(uniqueId, status) {
    return this.state.messages.map(function(message) {
    if (message.uniqueId !== uniqueId) {
    return message;
    }
    return Object.assign({}, message, {status});
    });
    }