Coder Social home page Coder Social logo

Comments (10)

lhagemann avatar lhagemann commented on August 24, 2024

++ seeing same error; solved by pinning to 1.7.0

from lita-slack.

jimmycuadra avatar jimmycuadra commented on August 24, 2024

cc @byroot

from lita-slack.

byroot avatar byroot commented on August 24, 2024

That is weird, we have no such issue, we're not running 1.7.1 though, but a patched 1.7.0: Shopify@21113ff5861c

I'll see what I can do.

from lita-slack.

byroot avatar byroot commented on August 24, 2024

Ok, good news, I'm able to repro. I'll try to get a fix tonight.

from lita-slack.

alixodendhal avatar alixodendhal commented on August 24, 2024

+1 I am seeing the same issue, reverted back to 1.7.0

from lita-slack.

manicholls avatar manicholls commented on August 24, 2024

Thanks everyone for the quick responses

from lita-slack.

Ginja avatar Ginja commented on August 24, 2024

+1

from lita-slack.

jimmycuadra avatar jimmycuadra commented on August 24, 2024

Reverted the offending code. You can update to gem version 1.7.2, which is the same as 1.7.0.

from lita-slack.

istensky avatar istensky commented on August 24, 2024

But now the version of 1.7.2 does not records email

from lita-slack.

byroot avatar byroot commented on August 24, 2024

@istensky this will do:

class UserEmail < Lita::Handler
  on :slack_user_created, :store_email

  def store_email(slack_user: )
    profile = slack_user.metadata['profile']
    email = profile && profile['email'].presence
    return unless email

    lita_user = Lita::User.find_by_id(slack_user.id)
    return unless lita_user

    lita_user.metadata['email'] = email
    lita_user.save
  end
end

Lita.register_handler(UserEmail)

from lita-slack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.