@@ -59,9 +59,9 @@ export class MessageList extends Component {
5959 this . props . onDownload ( item , i , e ) ;
6060 }
6161
62- onError ( item , i , e ) {
63- if ( this . props . onError instanceof Function )
64- this . props . onError ( item , i , e ) ;
62+ onPhotoError ( item , i , e ) {
63+ if ( this . props . onPhotoError instanceof Function )
64+ this . props . onPhotoError ( item , i , e ) ;
6565 }
6666
6767 onClick ( item , i , e ) {
@@ -144,7 +144,7 @@ export class MessageList extends Component {
144144 key = { i }
145145 { ...x }
146146 onOpen = { this . props . onOpen && ( ( e ) => this . onOpen ( x , i , e ) ) }
147- onError = { this . props . onError && ( ( e ) => this . onError ( x , i , e ) ) }
147+ onPhotoError = { this . props . onPhotoError && ( ( e ) => this . onPhotoError ( x , i , e ) ) }
148148 onDownload = { this . props . onDownload && ( ( e ) => this . onDownload ( x , i , e ) ) }
149149 onTitleClick = { this . props . onTitleClick && ( ( e ) => this . onTitleClick ( x , i , e ) ) }
150150 onForwardClick = { this . props . onForwardClick && ( ( e ) => this . onForwardClick ( x , i , e ) ) }
@@ -183,7 +183,7 @@ MessageList.defaultProps = {
183183 onForwardClick : null ,
184184 onDownButtonClick : null ,
185185 onOpen : null ,
186- onError : null ,
186+ onPhotoError : null ,
187187 onDownload : null ,
188188 dataSource : [ ] ,
189189 lockable : false ,
0 commit comments