hamsket icon indicating copy to clipboard operation
hamsket copied to clipboard

Paste in Hangouts always inserts at beginning of message

Open yuxuibbs opened this issue 4 years ago • 3 comments

Steps to reproduce

  1. open Hamsket
  2. open Hangouts (sign in as needed)
  3. open chat in Google Hangouts
  4. type something in the chat box
  5. copy random text from somewhere
  6. place text cursor anywhere other than the beginning of the message
  7. ctrl-v or right click + paste text into the chat box

Expected behavior

paste inserts text starting at the current position of the text cursor

Actual behavior

paste inserts text at the beginning of the message regardless of where the text cursor is

ENVIRONMENT

Hamsket: v0.6.0

OS: Linux (Ubuntu 20.04 LTS)

Arch: x64

BuildVersion: d78a4ea (grafted, HEAD, tag: nightly, origin/master) Sat, 2 May 2020 16:38:47 -0700

Does this happen upstream: unknown?

yuxuibbs avatar Jul 06 '20 15:07 yuxuibbs

Issue exists on Windows as well. I also tested on rambox community 0.7.5 -- it does not occur there. Occurs when using keyboard or right click + paste.

Hamsket: v0.6.0 OS: Windows 10 (2004 19041.388) Arch: x64 BuildVersion: https://github.com/TheGoddessInari/hamsket/commit/518e6b04289904d44bbb532ff58247c3e7f2a5e7 Does this happen upstream: Does not occur in Rambox Community 0.7.5

natesubra avatar Jul 22 '20 14:07 natesubra

Editing my hangouts service and changing the OS override to Windows fixed this for me. I believe the default UA string in this instance is Linux (saw mention of X11 in the default UA string). For anyone having this issue, try editing your hangouts service: Advanced>User Agent Tab> Override OS dropdown menu and set it to your OS family.

I also tested adding hangouts as a custom service using a custom UA string: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36 Edg/84.0.522.40.

Copy paste works correctly in this custom service instance. I don't know what all if any functionality is different using the custom service. But it's another potential workaround.

natesubra avatar Jul 22 '20 14:07 natesubra

This should get fixed with 4508c9e.

TheGoddessInari avatar Jul 31 '20 00:07 TheGoddessInari