def handleAction(self, model, entityID, action): super(_AcceptClanInviteHandler, self).handleAction(model, entityID, action) entity = model.getNotification(self.getNotType(), entityID).getEntity() clanName = entity.getClanName() clanTag = entity.getClanTag() result = yield showAcceptClanInviteDialog(clanName, clanTag) if result: yield self.clanCtrl.sendRequest(clan_ctxs.AcceptInviteCtx(self._getInviteID(model, entityID)), allowDelay=True)
def handleAction(self, model, entityID, action): super(_AcceptClanInviteHandler, self).handleAction(model, entityID, action) entity = model.getNotification(self.getNotType(), entityID).getEntity() clanName = entity.getClanName() clanTag = entity.getClanTag() result = yield showAcceptClanInviteDialog(clanName, clanTag) if result: reqResult = yield g_clanCtrl.sendRequest(clan_ctxs.AcceptInviteCtx(self._getInviteID(model, entityID)), allowDelay=True) if reqResult.isSuccess(): showClanJoinAward(clanName, clanTag, entity.getClanId())