mirror of
https://github.com/k0shk0sh/FastHub.git
synced 2025-12-08 19:05:54 +00:00
fix double reaction
This commit is contained in:
parent
0140b6502f
commit
f2c04476df
@ -91,7 +91,7 @@ public class ReactionsProvider {
|
||||
return false;
|
||||
}
|
||||
ReactionTypes type = ReactionTypes.get(vId);
|
||||
return type != null && type.getContent().equals(reactionsModel.getContent());
|
||||
return type != null && (type.getContent().equals(reactionsModel.getContent()) || type.getPostContent().equals(reactionsModel.getContent()));
|
||||
}
|
||||
|
||||
public boolean isCallingApi(long id, int vId) {
|
||||
@ -100,7 +100,8 @@ public class ReactionsProvider {
|
||||
return false;
|
||||
}
|
||||
ReactionTypes type = ReactionTypes.get(vId);
|
||||
return type != null && type.getContent().equals(reactionsModel.getContent()) && reactionsModel.isCallingApi();
|
||||
return type != null && (type.getContent().equals(reactionsModel.getContent()) || type.getPostContent().equals(reactionsModel.getContent()))
|
||||
&& reactionsModel.isCallingApi();
|
||||
}
|
||||
|
||||
@NonNull private Map<Long, ReactionsModel> getReactionsMap() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user