Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    madlittlemods (Eric Eastwood)
    @madlittlemods:matrix.org
    [m]

    Is it a Gitter problem? Sounds like you want to file an issue at https://github.com/vector-im/element-web/issues if it's a Element problem

    I can't see the message as it kicks me err_needreggednick

    graingert
    @graingert:matrix.org
    [m]
    no it's #python-dev on irc
    oh hang on
    import patchy
    
    patchy.patch(
        "weakref:WeakSet._commit_removals",
        """\
        @@ -1,5 +1,10 @@
         def _commit_removals(self):
        -    l = self._pending_removals
        +    pop = self._pending_removals.pop
             discard = self.data.discard
        -    while l:
        -        discard(l.pop())
        +    while True:
        +        try:
        +            item = pop()
        +        except IndexError:
        +            return
        +        else:
        +            discard(item)
        """
    )
    
    import itertools
    import asyncio
    import concurrent.futures
    import sys
    import threading
    
    threads = 200
    
    def test_all_tasks_threading() -> None:
        async def foo() -> None:
            await asyncio.sleep(0)
    
        async def create_tasks() -> None:
            for i in range(1000):
                asyncio.create_task(foo())
    
            await asyncio.sleep(0)
    
        results = []
        with concurrent.futures.ThreadPoolExecutor(threads) as tpe:
            for f in concurrent.futures.as_completed(
                tpe.submit(asyncio.run, create_tasks()) for i in range(threads)
            ):
                results.append(f.result())
        assert results == [None] * threads
    
    
    def main():
        for i in itertools.count():
            test_all_tasks_threading()
            print(f"worked {i}")
        return 0
    
    
    if __name__ == "__main__":
        sys.exit(main())
    there we go
    wait this is the gitter room sorry
    smichel17
    @smichel17:matrix.org
    [m]
    madlittlemods (Eric Eastwood): Also replied in thread, but unfortunately the room upgrade didn't work (error 500)
    1 reply
    spectie
    @spectie:matrix.org
    [m]
    hey all!
    we have a gitter room bridged to matrix
    and we'd like to bridge it to telegram
    using t2bot
    but the only admin in the room is the gitter badger
    so we get permission denied
    is it possible to have other admins in bridged gitter-matrix rooms ?
    2 replies
    the room is
    we have two other rooms we'd like to bridge as well:
    josh 🐸
    @josh-coqui:matrix.org
    [m]
    o/
    spectie
    @spectie:matrix.org
    [m]
    hey josh 🐸 !
    i'm asking here about the permissions stuff
    josh 🐸
    @josh-coqui:matrix.org
    [m]
    yup i see prev messages
    :)
    spectie
    @spectie:matrix.org
    [m]
    Maybe an option is to debridge the room, make a new matrix room, then bridge the two rooms
    But not sure if that's possible to do with gitter now
    spectie
    @spectie:matrix.org
    [m]
    Does anyone know ?
    piegames
    @piegames:matrix.org
    [m]
    I'd go with the "ask the admins" approach tbh
    spectie
    @spectie:matrix.org
    [m]
    Ok cool
    Do you want to set up the matrix room?
    Or I can do it
    piegames
    @piegames:matrix.org
    [m]
    Tip: when moving the bridge to another room you can manually set a custom tombstone to redirect the users
    josh 🐸
    @josh-coqui:matrix.org
    [m]
    madlittlemods (Eric Eastwood) thanks for the fast reply... however there is unexpected (to me) behavior, and i don't know if something's broken, or I just don't understand next steps :(
    right now, the current matrix room and gitter rooms aren't bridged anymore
    forgive me if this is obvious
    but I don't want to migrate the existing matrix community to this new room
    madlittlemods (Eric Eastwood)
    @madlittlemods:matrix.org
    [m]
    It's only possible to bridge Gitter to a single Matrix room. We can put a tombstone in the old rooms to move people over to the new one
    josh 🐸
    @josh-coqui:matrix.org
    [m]
    i'd really not want to do that...
    i didn't realize the old room wouldn't be bridged anymore... apologies, but if there's no other way, can we revert the changes?
    1 reply
    if moving the existing matrix users over is the only solution, I'll need to have a discussion with my team first, and it's nighttime in europe
    yes of course, I apologize for having to even ask for one back and forth
    it was not my intention
    :(
    madlittlemods (Eric Eastwood)
    @madlittlemods:matrix.org
    [m]
    All good. As an alternative, we can revert to the old rooms and you could setup your own Telegram bridge in the room which doesn't require admin privileges
    josh 🐸
    @josh-coqui:matrix.org
    [m]
    Now that I know just enough about bridges to break things, I'll have to look into this option (and others) more deeply 😅
    1 reply
    madlittlemods (Eric Eastwood)
    @madlittlemods:matrix.org
    [m]
    I've switched it back ✅
    josh 🐸
    @josh-coqui:matrix.org
    [m]
    thank you 🙏 and for your patience 💚
    that's what I was looking into before, yes...
    The end result that I'm hoping for is to have rooms which can be accessed from {Matrix/Gitter/Telegram} and the UX is smooth
    like right now, it's not obvious who's in Gitter and who's in Matrix
    it's just one big room
    and one bridge I got working made every message from/to Telegram look like it was quoted and sent by a bot
    1 reply