isSameUserSendGift method

bool isSameUserSendGift(
  1. ImGift preGift,
  2. ImGift nextGift
)

是否为相同用户发送的礼物 preGift 上一个的礼物 nextGift 下一个的礼物

Implementation

bool isSameUserSendGift(ImGift preGift, ImGift nextGift) {
  return (preGift.userId == nextGift.userId);
}