Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    graingert
    @graingert:matrix.org
    [m]
    @MadLittleMods: can I get https://gitter.im/PyCQA/meta bridged to #pycqa:chat.libera.net
    1 reply
    uhh that's !iCaFLFuzWxDZcdYuii:libera.chat
    weatheralex1
    @weatheralex1
    hi
    Ross A. Baker
    @rossabaker:matrix.org
    [m]
    Is there any way to moderate Gitter channels via the Matrix bridge? I'm primarily using my matrix.org account with Element to participate in my old Gitter channels, but can't moderate unless I go back to native Gitter.
    Ross A. Baker
    @rossabaker:matrix.org
    [m]
    Think I found the answer is not yet: gitterHQ/webapp#2711
    smichel17
    @smichel17:matrix.org
    [m]
    Hi, how would I go about troubleshooting a gitter room whose bridge isn't working? Specifically #mpcjanssen_simpletask-android:gitter.im
    2 replies
    smichel17
    @smichel17:matrix.org
    [m]
    Before Element bought Gitter, it was bridged to a Gitter room the old way. Now the alias above redirects to #simpletask:matrix.org, but messages are not transmitted across.
    Interestingly, a different room I'm in which was previously bridged (#redmoon:matrix.org) has the same behavior, but the bridge is still functioning (but I cannot figure out how to manage it, although I'm an admin of both the matrix and gitter rooms).
    smichel17
    @smichel17:matrix.org
    [m]
    graingert
    @graingert:matrix.org
    [m]
    a message seems broken in element
    1 reply
    how can I forward it?
    It seems to be confused by the diff syntax in the paste
    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