Fix #403
This commit is contained in:
parent
4200486aeb
commit
5a681d3557
|
@ -3,9 +3,11 @@ package org.joinmastodon.android.events;
|
|||
import org.joinmastodon.android.model.Status;
|
||||
|
||||
public class StatusCreatedEvent{
|
||||
public Status status;
|
||||
public final Status status;
|
||||
public final String accountID;
|
||||
|
||||
public StatusCreatedEvent(Status status){
|
||||
public StatusCreatedEvent(Status status, String accountID){
|
||||
this.status=status;
|
||||
this.accountID=accountID;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -687,7 +687,7 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr
|
|||
wm.removeView(sendingOverlay);
|
||||
sendingOverlay=null;
|
||||
if(editingStatus==null){
|
||||
E.post(new StatusCreatedEvent(result));
|
||||
E.post(new StatusCreatedEvent(result, accountID));
|
||||
if(replyTo!=null){
|
||||
replyTo.repliesCount++;
|
||||
E.post(new StatusCountersUpdatedEvent(replyTo));
|
||||
|
|
|
@ -187,6 +187,8 @@ public abstract class StatusListFragment extends BaseStatusListFragment<Status>{
|
|||
|
||||
@Subscribe
|
||||
public void onStatusCreated(StatusCreatedEvent ev){
|
||||
if(!ev.accountID.equals(accountID))
|
||||
return;
|
||||
StatusListFragment.this.onStatusCreated(ev);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue