Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Commits on Source (2)
(fix) channel feed prepend
· 83b8ab75
Martin Santangelo
authored
Jul 29, 2019
83b8ab75
Merge branch 'sprint/JollyJellyfish.bug.should.prepend.post.mychannel' into 'release/3.8.0'
· a8c34bec
Martin Santangelo
authored
Jul 30, 2019
[Sprint/JollyJellyfish] (fix) channel feed prepend See merge request
!280
a8c34bec
Hide whitespace changes
Inline
Side-by-side
src/channel/ChannelScreen.js
View file @
a8c34bec
...
...
@@ -66,7 +66,7 @@ export default class ChannelScreen extends Component {
const
store
=
this
.
props
.
channel
.
store
(
this
.
guid
);
if
(
params
&&
params
.
prepend
)
{
if
(
store
.
channel
&&
store
.
channel
.
isOwner
&&
store
.
channel
.
isOwner
())
{
store
.
feedStore
.
stores
.
feed
.
list
.
prepend
(
params
.
prepend
);
store
.
feedStore
.
feedStore
.
prepend
(
params
.
prepend
);
}
// we clear the parameter to prevent prepend it again on goBack
this
.
props
.
navigation
.
setParams
({
prepend
:
null
});
...
...